From gambas at ...1... Tue Jan 24 01:49:59 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jan 2012 01:49:59 +0100 Subject: [Gambas-devel] Writing components in C/C++ Message-ID: <4F1E0037.1090101@...1...> Did you subscribe to the devel mailing-list? Did you look in the "TEMPLATE" source directory. There is a shell script there that create a gb.xxxx directory skeleton for you based on a description file. Read the TEMPLATE/README file for more information and send your questions on the developer mailing-list. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 24 03:14:24 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 23 Jan 2012 18:14:24 -0800 Subject: [Gambas-devel] Unusual Output from make-component In-Reply-To: References: Message-ID: First, Sorry for sending this to the devel-request list first. That was in error. Hi, > > I just ran make-component from the TEMPLATE folder and got the following > output: > > $:~/Documents/MyProjects/gambas3-dev/trunk/TEMPLATE$ ./make-component > gd.test > test: 16: x/usr/bin/cpp: unexpected operator > Creating component directory gd.test... > ./make-component: 20: pushd: not found > ./make-component: 26: popd: not found > Applying template... > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/AUTHORS.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/ChangeLog.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/Makefile.am.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/NEWS.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/README.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/SOURCES.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/configure.ac.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/make-component.out: No such file or directory > cc1: error: ./conf/gd.test.conf: No such file or directory > cat: ../gd.test/src/Makefile.am.out: No such file or directory > Creating source files... > ./make-component: 55: pushd: not found > ./make-component: 57: source: not found > ./make-component: 59: popd: not found > > Could there be something wrong in the TEMPLATE.cpp file? > > Thanks for your help! > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jan 24 03:44:10 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jan 2012 03:44:10 +0100 Subject: [Gambas-devel] Unusual Output from make-component In-Reply-To: References: Message-ID: <4F1E1AFA.9030508@...1...> Le 24/01/2012 03:14, Randall Morgan a ?crit : > First, Sorry for sending this to the devel-request list first. That was in > error. > > Hi, >> >> I just ran make-component from the TEMPLATE folder and got the following >> output: >> >> $:~/Documents/MyProjects/gambas3-dev/trunk/TEMPLATE$ ./make-component >> gd.test >> test: 16: x/usr/bin/cpp: unexpected operator >> Creating component directory gd.test... >> ./make-component: 20: pushd: not found >> ./make-component: 26: popd: not found >> Applying template... >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/AUTHORS.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/ChangeLog.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/Makefile.am.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/NEWS.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/README.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/SOURCES.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/configure.ac.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/make-component.out: No such file or directory >> cc1: error: ./conf/gd.test.conf: No such file or directory >> cat: ../gd.test/src/Makefile.am.out: No such file or directory >> Creating source files... >> ./make-component: 55: pushd: not found >> ./make-component: 57: source: not found >> ./make-component: 59: popd: not found >> >> Could there be something wrong in the TEMPLATE.cpp file? >> >> Thanks for your help! >> There is something wrong in your shell I think. Replace /bin/sh by /bin/bash in the first line of the make-component script. And replace "gd" by "gb" in your component name. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 24 04:01:09 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 23 Jan 2012 19:01:09 -0800 Subject: [Gambas-devel] Unusual Output from make-component In-Reply-To: <4F1E1AFA.9030508@...1...> References: <4F1E1AFA.9030508@...1...> Message-ID: That fixed it. Sorry about the typo. That's what happens when you give a dyslexic a license to program ;-) 2012/1/23 Beno?t Minisini > Le 24/01/2012 03:14, Randall Morgan a ?crit : > > First, Sorry for sending this to the devel-request list first. That was > in > > error. > > > > Hi, > >> > >> I just ran make-component from the TEMPLATE folder and got the following > >> output: > >> > >> $:~/Documents/MyProjects/gambas3-dev/trunk/TEMPLATE$ ./make-component > >> gd.test > >> test: 16: x/usr/bin/cpp: unexpected operator > >> Creating component directory gd.test... > >> ./make-component: 20: pushd: not found > >> ./make-component: 26: popd: not found > >> Applying template... > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/AUTHORS.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/ChangeLog.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/Makefile.am.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/NEWS.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/README.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/SOURCES.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/configure.ac.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/make-component.out: No such file or directory > >> cc1: error: ./conf/gd.test.conf: No such file or directory > >> cat: ../gd.test/src/Makefile.am.out: No such file or directory > >> Creating source files... > >> ./make-component: 55: pushd: not found > >> ./make-component: 57: source: not found > >> ./make-component: 59: popd: not found > >> > >> Could there be something wrong in the TEMPLATE.cpp file? > >> > >> Thanks for your help! > >> > > There is something wrong in your shell I think. > > Replace /bin/sh by /bin/bash in the first line of the make-component > script. > > And replace "gd" by "gb" in your component name. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 24 04:33:56 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 23 Jan 2012 19:33:56 -0800 Subject: [Gambas-devel] More Errors Message-ID: Hi Benoit, Sorry to be such pain but I've got one more error now. I ran ./reconf and all is well. But when I run ./configure I get the following: ~/Documents/MyProjects/gambas3-dev/trunk/gb.test$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking whether ln -s works... yes checking target system... LINUX checking target architecture... X86 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking whether make sets $(MAKE)... (cached) yes checking for long double with more range or precision than double... yes checking for setenv... yes checking for unsetenv... yes checking for getdomainname... yes checking for getpt... yes checking for cfmakeraw... yes checking for main in -lgcc_s... yes checking for main in -lstdc++... yes checking which extension is used for shared libraries... .so checking for threading compiler options... -D_REENTRANT checking for threading linker options... -lpthread checking for mathematic libraries... -lm checking for external gettext library... checking for ccache... no ./configure: line 6169: syntax error near unexpected token `-fvisibility=hidden,,' ./configure: line 6169: ` GB_CFLAGS_GCC_OPTION(-fvisibility=hidden,,' Thanks again :-) -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Wed Jan 25 01:13:52 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 24 Jan 2012 16:13:52 -0800 Subject: [Gambas-devel] GB Macros and Methods Message-ID: Hi, I've been digging around the various components and trying to piece together the inner workings. I'm far from done! But I do have a few questions: I plan to port the GNU Scientific Library to Gambas (GSL) using C. The GSL is a collection of related high level mathmatic functions. Many of which require vectors and matrices. I want these to appear to Gambas as gb.GSL., where class is one of the GSL's many classes shuch as "math" for generic mathimatical methods like special implementations of POW(). It is desired to be able to use the library in Gambas as gb.GSL.math.IntPow2(2) which should return a float (double in C) to the caller. The function takes in integer as the argument. With this info in had, it appears that much of this can be done by creating C function wrapped in BEGIN_METHOD()/END_METHOD macros, i.e.: BEGIN_METHOD(INTPOW2, GB_INTEGER x) // Return x^2 using a small int safe method // call gsl native function double gsl_pow_2(int x) GB.ReturnFloat(gsl_pow(VARG(x))) END_METHOD In the header file I need to used the DECLARE_METHOD() to expose the methods to Gambas: DECLARE_METHOD(INTPOW2) Next, in the class file, I need to expose the class to Gambas using the Class Desc macro: GB_DESC CMath[] = { /* Describe the math class to Gambas */ GB_DECLARE("CMath",0), GB_NOT_CREATABLE(), } Can you explain the params and the use of GB_STATIC_PROPERTY, GB_STATIC_PROPERTY_SELF, GB_STATIC_METHOD, GB_STATIC_FAST_METHOD, GB_INTERFACE? Where does the ID come from in GB_INHERITS? Somewhere I need to expose the various classes to GAMBAS. I think the in the main or base class file? GB_DESC *GB_CLASSES[] EXPORT = { /* GSL */ CGsl, /* GSL.MATH */ CMath, /* GSL.STAT */ CStatistics, /* GSL.MATRIX */ CMatrix, ... /* GSL.POLYNORMAL */ CPoly, NULL // Looks like all GB_DESC must end with NULL? }; Am I way off base here or on the right track? Ok, I know this is a lot to ask. So I'll make you a deal. If you help me to understand all this I will write an English tutorial for creating components using C/C++. Thanks, Randall -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed Jan 25 02:06:12 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 25 Jan 2012 02:06:12 +0100 Subject: [Gambas-devel] GB Macros and Methods In-Reply-To: References: Message-ID: <4F1F5584.3060409@...1...> Le 25/01/2012 01:13, Randall Morgan a ?crit : > Hi, > > I've been digging around the various components and trying to piece > together the inner workings. I'm far from done! But I do have a few > questions: > > I plan to port the GNU Scientific Library to Gambas (GSL) using C. The GSL > is a collection of related high level mathmatic functions. Many of which > require vectors and matrices. > I want these to appear to Gambas as gb.GSL., where class is one of > the GSL's many classes shuch as "math" for generic mathimatical methods > like special implementations of POW(). First I strongly suggest to simplify the name of the classes. I suggest that you use the name of the mathematical objects as class name directly. Because a complex is a complex, a polynomial is a polynomial, and so on. Example: Dim C As New Complex(R, I) Dim P As New Polynomial(...) As for global GSL methods, the standard is putting them directly in a static GSL class. Example: Print Gsl.IntPow2(2) > It is desired to be able to use the library in Gambas as > gb.GSL.math.IntPow2(2) which should return a float (double in C) to the > caller. The function takes in integer as the argument. > > With this info in had, it appears that much of this can be done by creating > C function wrapped in BEGIN_METHOD()/END_METHOD macros, i.e.: > > BEGIN_METHOD(INTPOW2, GB_INTEGER x) > // Return x^2 using a small int safe method > // call gsl native function double gsl_pow_2(int x) > GB.ReturnFloat(gsl_pow(VARG(x))) > END_METHOD I strongly suggest that you name the implementation function that way: _ For example: Gsl_IntPow2 Look at a recent component (like gb.dbus), where I follow this scheme. > > > In the header file I need to used the DECLARE_METHOD() to expose the > methods to Gambas: > > DECLARE_METHOD(INTPOW2) This is not needed, as normally the implementation function is only used inside one file, the file that implements the class. > > > Next, in the class file, I need to expose the class to Gambas using the > Class Desc macro: Yes. > > GB_DESC CMath[] = > { > /* Describe the math class to Gambas */ > GB_DECLARE("CMath",0), GB_NOT_CREATABLE(), > > } > > Can you explain the params and the use of GB_STATIC_PROPERTY, > GB_STATIC_PROPERTY_SELF, GB_STATIC_METHOD, GB_STATIC_FAST_METHOD, > GB_INTERFACE? Yes. You can look at the wiki doc, even if it is out of date, to get an idea of what these macro do. Or look at the source a component whose interface is well known of you. GB_STATIC_PROPERTY(, , ) -> Declare a static property. is a C string, the name of the property. is a C string, the property signature. is the name of the implementation function. GB_STATIC_METHOD(, , , ) -> Declare a static method. is a C string, the name of the method. is the signature of the method return type, or NULL if the method returns nothing. is the name of the implementation function. is the signature of the methods arguments, or NULL if the method has no arguments. GB_STATIC_FAST_METHOD: Don't touch, it is dangerous. :-) GB_INTERFACE: you won't have any use of that. It is a hacky way of declaring that a class implements "something" (an interface), this thing being represented by a pointer. > > Where does the ID come from in GB_INHERITS? GB_INHERITS() -> Inherits a class. is a C string, the name of the parent class. > > Somewhere I need to expose the various classes to GAMBAS. I think the in > the main or base class file? You should create a "main.c" file that declares and exports the GB_CLASSES array, the GB_INIT() and the GB_EXIT() functions. > > GB_DESC *GB_CLASSES[] EXPORT = > { > /* GSL */ > CGsl, > > /* GSL.MATH */ > CMath, > > /* GSL.STAT */ > CStatistics, > > /* GSL.MATRIX */ > CMatrix, > > ... > > /* GSL.POLYNORMAL */ --> Beware with your dyslexy. :-) > CPoly, > > NULL // Looks like all GB_DESC must end with NULL? Yes, otherwise the interpreter cannot know that the array is finished. > }; > > Am I way off base here or on the right track? You're on the right track. > > Ok, I know this is a lot to ask. So I'll make you a deal. If you help me to > understand all this I will write an English tutorial for creating > components using C/C++. It would be cool. -- Beno?t Minisini From rmorgan62 at ...176... Wed Jan 25 02:59:50 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 24 Jan 2012 17:59:50 -0800 Subject: [Gambas-devel] GB Macros and Methods In-Reply-To: <4F1F5584.3060409@...1...> References: <4F1F5584.3060409@...1...> Message-ID: Thanks Benoit, That gives me a heads up. Now I do still have the issue of a ./configure error with the generated config script. I sent that in another post. The last little bit of the output is: checking for setenv... yes checking for unsetenv... yes checking for getdomainname... yes checking for getpt... yes checking for cfmakeraw... yes checking for main in -lgcc_s... yes checking for main in -lstdc++... yes checking which extension is used for shared libraries... .so checking for threading compiler options... -D_REENTRANT checking for threading linker options... -lpthread checking for mathematic libraries... -lm checking for external gettext library... checking for ccache... no ./configure: line 6169: syntax error near unexpected token `-fvisibility=hidden,,' ./configure: line 6169: ` GB_CFLAGS_GCC_OPTION(-fvisibility=hidden,,' Again, thanks for your help. If I can get a decent understanding of this, I'll port my TidyLib to C as well and then make these available to you and others. Randall 2012/1/24 Beno?t Minisini > Le 25/01/2012 01:13, Randall Morgan a ?crit : > > Hi, > > > > I've been digging around the various components and trying to piece > > together the inner workings. I'm far from done! But I do have a few > > questions: > > > > I plan to port the GNU Scientific Library to Gambas (GSL) using C. The > GSL > > is a collection of related high level mathmatic functions. Many of which > > require vectors and matrices. > > I want these to appear to Gambas as gb.GSL., where class is one of > > the GSL's many classes shuch as "math" for generic mathimatical methods > > like special implementations of POW(). > > First I strongly suggest to simplify the name of the classes. > > I suggest that you use the name of the mathematical objects as class > name directly. Because a complex is a complex, a polynomial is a > polynomial, and so on. > > Example: > > Dim C As New Complex(R, I) > Dim P As New Polynomial(...) > > > As for global GSL methods, the standard is putting them directly in a > static GSL class. > > Example: > > Print Gsl.IntPow2(2) > > > > It is desired to be able to use the library in Gambas as > > gb.GSL.math.IntPow2(2) which should return a float (double in C) to the > > caller. The function takes in integer as the argument. > > > > With this info in had, it appears that much of this can be done by > creating > > C function wrapped in BEGIN_METHOD()/END_METHOD macros, i.e.: > > > > BEGIN_METHOD(INTPOW2, GB_INTEGER x) > > // Return x^2 using a small int safe method > > // call gsl native function double gsl_pow_2(int x) > > GB.ReturnFloat(gsl_pow(VARG(x))) > > END_METHOD > > I strongly suggest that you name the implementation function that way: > > _ > > For example: Gsl_IntPow2 > > Look at a recent component (like gb.dbus), where I follow this scheme. > > > > > > > In the header file I need to used the DECLARE_METHOD() to expose the > > methods to Gambas: > > > > DECLARE_METHOD(INTPOW2) > > This is not needed, as normally the implementation function is only used > inside one file, the file that implements the class. > > > > > > > Next, in the class file, I need to expose the class to Gambas using the > > Class Desc macro: > > Yes. > > > > > GB_DESC CMath[] = > > { > > /* Describe the math class to Gambas */ > > GB_DECLARE("CMath",0), GB_NOT_CREATABLE(), > > > > } > > > > Can you explain the params and the use of GB_STATIC_PROPERTY, > > GB_STATIC_PROPERTY_SELF, GB_STATIC_METHOD, GB_STATIC_FAST_METHOD, > > GB_INTERFACE? > > Yes. You can look at the wiki doc, even if it is out of date, to get an > idea of what these macro do. Or look at the source a component whose > interface is well known of you. > > GB_STATIC_PROPERTY(, , ) -> Declare a static > property. > > is a C string, the name of the property. > is a C string, the property signature. > is the name of the implementation function. > > GB_STATIC_METHOD(, , , ) -> Declare a > static method. > > is a C string, the name of the method. > is the signature of the method return type, or NULL if the method > returns nothing. > is the name of the implementation function. > is the signature of the methods arguments, or NULL if the > method has no arguments. > > GB_STATIC_FAST_METHOD: Don't touch, it is dangerous. :-) > > GB_INTERFACE: you won't have any use of that. It is a hacky way of > declaring that a class implements "something" (an interface), this thing > being represented by a pointer. > > > > > Where does the ID come from in GB_INHERITS? > > GB_INHERITS() -> Inherits a class. > > is a C string, the name of the parent class. > > > > > Somewhere I need to expose the various classes to GAMBAS. I think the in > > the main or base class file? > > You should create a "main.c" file that declares and exports the > GB_CLASSES array, the GB_INIT() and the GB_EXIT() functions. > > > > > GB_DESC *GB_CLASSES[] EXPORT = > > { > > /* GSL */ > > CGsl, > > > > /* GSL.MATH */ > > CMath, > > > > /* GSL.STAT */ > > CStatistics, > > > > /* GSL.MATRIX */ > > CMatrix, > > > > ... > > > > /* GSL.POLYNORMAL */ > > --> Beware with your dyslexy. :-) > > > CPoly, > > > > NULL // Looks like all GB_DESC must end with NULL? > > Yes, otherwise the interpreter cannot know that the array is finished. > > > }; > > > > Am I way off base here or on the right track? > > You're on the right track. > > > > > Ok, I know this is a lot to ask. So I'll make you a deal. If you help me > to > > understand all this I will write an English tutorial for creating > > components using C/C++. > > It would be cool. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Wed Jan 25 03:05:52 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 24 Jan 2012 18:05:52 -0800 Subject: [Gambas-devel] GB Macros and Methods In-Reply-To: References: <4F1F5584.3060409@...1...> Message-ID: Oh, one more thing, is there another source for info on building components from C? I've read the http://gambasdoc.org/help/dev/overview?v3 but it lacks a lot of the info you suggest I can find there. Thanks On Tue, Jan 24, 2012 at 5:59 PM, Randall Morgan wrote: > Thanks Benoit, > > That gives me a heads up. > > Now I do still have the issue of a ./configure error with the generated > config script. I sent that in another post. > > The last little bit of the output is: > > checking for setenv... yes > checking for unsetenv... yes > checking for getdomainname... yes > checking for getpt... yes > checking for cfmakeraw... yes > checking for main in -lgcc_s... yes > checking for main in -lstdc++... yes > checking which extension is used for shared libraries... .so > checking for threading compiler options... -D_REENTRANT > checking for threading linker options... -lpthread > checking for mathematic libraries... -lm > checking for external gettext library... > checking for ccache... no > ./configure: line 6169: syntax error near unexpected token > `-fvisibility=hidden,,' > ./configure: line 6169: ` GB_CFLAGS_GCC_OPTION(-fvisibility=hidden,,' > > Again, thanks for your help. If I can get a decent understanding of this, > I'll port my TidyLib to C as well and then make these available to you and > others. > > Randall > > 2012/1/24 Beno?t Minisini > >> Le 25/01/2012 01:13, Randall Morgan a ?crit : >> > Hi, >> > >> > I've been digging around the various components and trying to piece >> > together the inner workings. I'm far from done! But I do have a few >> > questions: >> > >> > I plan to port the GNU Scientific Library to Gambas (GSL) using C. The >> GSL >> > is a collection of related high level mathmatic functions. Many of which >> > require vectors and matrices. >> > I want these to appear to Gambas as gb.GSL., where class is one >> of >> > the GSL's many classes shuch as "math" for generic mathimatical methods >> > like special implementations of POW(). >> >> First I strongly suggest to simplify the name of the classes. >> >> I suggest that you use the name of the mathematical objects as class >> name directly. Because a complex is a complex, a polynomial is a >> polynomial, and so on. >> >> Example: >> >> Dim C As New Complex(R, I) >> Dim P As New Polynomial(...) >> >> >> As for global GSL methods, the standard is putting them directly in a >> static GSL class. >> >> Example: >> >> Print Gsl.IntPow2(2) >> >> >> > It is desired to be able to use the library in Gambas as >> > gb.GSL.math.IntPow2(2) which should return a float (double in C) to the >> > caller. The function takes in integer as the argument. >> > >> > With this info in had, it appears that much of this can be done by >> creating >> > C function wrapped in BEGIN_METHOD()/END_METHOD macros, i.e.: >> > >> > BEGIN_METHOD(INTPOW2, GB_INTEGER x) >> > // Return x^2 using a small int safe method >> > // call gsl native function double gsl_pow_2(int x) >> > GB.ReturnFloat(gsl_pow(VARG(x))) >> > END_METHOD >> >> I strongly suggest that you name the implementation function that way: >> >> _ >> >> For example: Gsl_IntPow2 >> >> Look at a recent component (like gb.dbus), where I follow this scheme. >> >> > >> > >> > In the header file I need to used the DECLARE_METHOD() to expose the >> > methods to Gambas: >> > >> > DECLARE_METHOD(INTPOW2) >> >> This is not needed, as normally the implementation function is only used >> inside one file, the file that implements the class. >> >> > >> > >> > Next, in the class file, I need to expose the class to Gambas using the >> > Class Desc macro: >> >> Yes. >> >> > >> > GB_DESC CMath[] = >> > { >> > /* Describe the math class to Gambas */ >> > GB_DECLARE("CMath",0), GB_NOT_CREATABLE(), >> > >> > } >> > >> > Can you explain the params and the use of GB_STATIC_PROPERTY, >> > GB_STATIC_PROPERTY_SELF, GB_STATIC_METHOD, GB_STATIC_FAST_METHOD, >> > GB_INTERFACE? >> >> Yes. You can look at the wiki doc, even if it is out of date, to get an >> idea of what these macro do. Or look at the source a component whose >> interface is well known of you. >> >> GB_STATIC_PROPERTY(, , ) -> Declare a static >> property. >> >> is a C string, the name of the property. >> is a C string, the property signature. >> is the name of the implementation function. >> >> GB_STATIC_METHOD(, , , ) -> Declare a >> static method. >> >> is a C string, the name of the method. >> is the signature of the method return type, or NULL if the method >> returns nothing. >> is the name of the implementation function. >> is the signature of the methods arguments, or NULL if the >> method has no arguments. >> >> GB_STATIC_FAST_METHOD: Don't touch, it is dangerous. :-) >> >> GB_INTERFACE: you won't have any use of that. It is a hacky way of >> declaring that a class implements "something" (an interface), this thing >> being represented by a pointer. >> >> > >> > Where does the ID come from in GB_INHERITS? >> >> GB_INHERITS() -> Inherits a class. >> >> is a C string, the name of the parent class. >> >> > >> > Somewhere I need to expose the various classes to GAMBAS. I think the in >> > the main or base class file? >> >> You should create a "main.c" file that declares and exports the >> GB_CLASSES array, the GB_INIT() and the GB_EXIT() functions. >> >> > >> > GB_DESC *GB_CLASSES[] EXPORT = >> > { >> > /* GSL */ >> > CGsl, >> > >> > /* GSL.MATH */ >> > CMath, >> > >> > /* GSL.STAT */ >> > CStatistics, >> > >> > /* GSL.MATRIX */ >> > CMatrix, >> > >> > ... >> > >> > /* GSL.POLYNORMAL */ >> >> --> Beware with your dyslexy. :-) >> >> > CPoly, >> > >> > NULL // Looks like all GB_DESC must end with NULL? >> >> Yes, otherwise the interpreter cannot know that the array is finished. >> >> > }; >> > >> > Am I way off base here or on the right track? >> >> You're on the right track. >> >> > >> > Ok, I know this is a lot to ask. So I'll make you a deal. If you help >> me to >> > understand all this I will write an English tutorial for creating >> > components using C/C++. >> >> It would be cool. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-devel mailing list >> Gambas-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-devel >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed Jan 25 21:52:59 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 25 Jan 2012 21:52:59 +0100 Subject: [Gambas-devel] GB Macros and Methods In-Reply-To: References: <4F1F5584.3060409@...1...> Message-ID: <4F206BAB.1010608@...1...> Le 25/01/2012 03:05, Randall Morgan a ?crit : > Oh, one more thing, is there another source for info on building components > from C? > > I've read the http://gambasdoc.org/help/dev/overview?v3 but it lacks a > lot of the info you suggest I can find there. > > Thanks > There is http://gambasdoc.org/help/dev/api that will document all macros and interpreter API methods that you must use to write the document. And of course, reading the source of other components will give you examples. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Wed Jan 25 22:00:26 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Wed, 25 Jan 2012 13:00:26 -0800 Subject: [Gambas-devel] GB Macros and Methods In-Reply-To: <4F206BAB.1010608@...1...> References: <4F1F5584.3060409@...1...> <4F206BAB.1010608@...1...> Message-ID: Thanks, that one does not come up when I google. 2012/1/25 Beno?t Minisini > Le 25/01/2012 03:05, Randall Morgan a ?crit : > > Oh, one more thing, is there another source for info on building > components > > from C? > > > > I've read the http://gambasdoc.org/help/dev/overview?v3 but it lacks a > > lot of the info you suggest I can find there. > > > > Thanks > > > > There is http://gambasdoc.org/help/dev/api that will document all macros > and interpreter API methods that you must use to write the document. > > And of course, reading the source of other components will give you > examples. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Thu Jan 26 14:13:08 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Thu, 26 Jan 2012 05:13:08 -0800 Subject: [Gambas-devel] Component Config error Message-ID: Hi Benoit, Using the configuration generated by the make-component script I get a failed configure in the gsl component directory. I have read the readme and the install dcos as well as reviewed the wiki pages and have failed to find a solution. I am including the config log for your review. Any help you can give on this issue would be greatly appreciated. Thanks, Randall -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.tar.gz Type: application/x-gzip Size: 4507 bytes Desc: not available URL: From gambas at ...1... Sat Jan 28 01:54:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jan 2012 01:54:09 +0100 Subject: [Gambas-devel] Component Config error In-Reply-To: References: Message-ID: <4F234731.7080306@...1...> Le 26/01/2012 14:13, Randall Morgan a ?crit : > Hi Benoit, > > Using the configuration generated by the make-component script I get a > failed configure in the gsl component directory. > I have read the readme and the install dcos as well as reviewed the wiki > pages and have failed to find a solution. > > I am including the config log for your review. > > Any help you can give on this issue would be greatly appreciated. > > Thanks, > > Randall > Please provide the '*.conf' file you created for running make-component. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Sat Jan 28 02:52:30 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Fri, 27 Jan 2012 17:52:30 -0800 Subject: [Gambas-devel] Component Config error In-Reply-To: <4F234731.7080306@...1...> References: <4F234731.7080306@...1...> Message-ID: Hi Benoit, I have tried a half dozen config files. Here is the latest. I also compared the config produced by the make-component script with the one found in the dbus component and found them to be slightly different. I also made sure to build the libgsl on my system and insure it was available. /* Copyrights */ #define __COPYRIGHT (c) 2012 #define __AUTHOR Randall Morgan #define __EMAIL /* Name of the component */ #define __COMPONENT gb.gsl /* Name of the component with points replaced by underscore */ #define __COMPONENT_UNDERSCORE gb_gsl /* Short name of the component */ #define __NAME gsl /* Short name of the component in uppercase */ #define __UNAME GSL /* Description of the component */ #define __DESCRIPTION GNU Scientific Library component /* If the component detection uses pkg-config */ #define __USE_PKGCONFIG 0 #if __USE_PKGCONFIG /* Name of the package for pkg-config */ #define __PKGCONFIG_NAME gsl-0.1 /* Minimum version needed */ #define __PKGCONFIG_VERSION 1.2.8 #else /* __USE_PKGCONFIG */ /* If your component uses C */ #define __USE_C 1 /* If your component uses C++ */ #define __USE_CPLUSPLUS 1 /* If your component uses multi-threading */ #define __USE_THREAD 0 /* If your component uses X-Window */ #define __USE_XWINDOW 0 /* Includes to search for */ #define __SEARCH_INCLUDE c_gsl.h gsl.h /* Includes directories search path */ #define __SEARCH_INCLUDE_PATH /usr/local/lib /usr/local /usr/lib /usr /* Includes sub-directories search */ #define __SEARCH_INCLUDE_DIR gsl/include include gsl*/include gsl/*/include /* Libraries to search for */ #define __SEARCH_LIBRARY libgsl.$SHLIBEXT /* Libraries directories search path */ #define __SEARCH_LIBRARY_PATH /usr/local /usr /* Libraries sub-directories search path */ #define __SEARCH_LIBRARY_DIR lib /* Libraries to link with */ #define __LIBRARY -llibgsl /* Includes to link with */ #define __INCLUDE -lgsl #endif /* __USE_PKGCONFIG */ /* Source file list */ #define __SOURCES main.c main.h c_gsl.c c_gsl.h /* Main C/C++ source basename in uppercase */ #define __MAIN_UNAME MAIN Thanks again for your help! Randall > > Hi Benoit, > > > > Using the configuration generated by the make-component script I get a > > failed configure in the gsl component directory. > > I have read the readme and the install dcos as well as reviewed the wiki > > pages and have failed to find a solution. > > > > I am including the config log for your review. > > > > Any help you can give on this issue would be greatly appreciated. > > > > Thanks, > > > > Randall > > > > Please provide the '*.conf' file you created for running make-component. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sat Jan 28 03:30:01 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jan 2012 03:30:01 +0100 Subject: [Gambas-devel] Component Config error In-Reply-To: References: <4F234731.7080306@...1...> Message-ID: <4F235DA9.6010708@...1...> Le 28/01/2012 02:52, Randall Morgan a ?crit : > Hi Benoit, > > I have tried a half dozen config files. Here is the latest. I also compared > the config produced by the make-component script with the one found in the > dbus component and found them to be slightly different. I also made sure to > build the libgsl on my system and insure it was available. > ... OK, I fixed the make-component template files in revision #4424, and now the configure script should work correctly! -- Beno?t Minisini From rmorgan62 at ...176... Sat Jan 28 06:00:44 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Fri, 27 Jan 2012 21:00:44 -0800 Subject: [Gambas-devel] Component Config error In-Reply-To: <4F235DA9.6010708@...1...> References: <4F234731.7080306@...1...> <4F235DA9.6010708@...1...> Message-ID: Thanks, I can now compile! :-) 2012/1/27 Beno?t Minisini > Le 28/01/2012 02:52, Randall Morgan a ?crit : > > Hi Benoit, > > > > I have tried a half dozen config files. Here is the latest. I also > compared > > the config produced by the make-component script with the one found in > the > > dbus component and found them to be slightly different. I also made sure > to > > build the libgsl on my system and insure it was available. > > ... > > OK, I fixed the make-component template files in revision #4424, and now > the configure script should work correctly! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Sun Jan 29 23:57:38 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Sun, 29 Jan 2012 14:57:38 -0800 Subject: [Gambas-devel] Gambas not finding component Message-ID: Hi Benoit, I am still working on just getting a single function version of a component to compile and be recognized by Gambas3. I am using Ubuntu 10.10 and 10.04 (two machines). I have used a dozen or more gb.gsl.conf file but I am including my work here as to tar files for your review. I truly want to understand this process so I can contribute not only gsl but convert my tidy library to a c compiled component and would love to do others components as well. I can compile my component without error but Gambas never seems to find it. Any help you can give would be greatly appreciated. I am including the component source files and the template config for your review. I am sure I have missed something. -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.gsl.conf.tar.gz Type: application/x-gzip Size: 790 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.gsl.src.tar.gz Type: application/x-gzip Size: 1308 bytes Desc: not available URL: From gambas at ...1... Mon Jan 30 00:10:16 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Jan 2012 00:10:16 +0100 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: References: Message-ID: <4F25D1D8.7080903@...1...> Le 29/01/2012 23:57, Randall Morgan a ?crit : > Hi Benoit, > > I am still working on just getting a single function version of a > component to compile and be recognized by Gambas3. > > I am using Ubuntu 10.10 and 10.04 (two machines). I have used a dozen or > more gb.gsl.conf file but I am including > my work here as to tar files for your review. I truly want to understand > this process so I can contribute not only gsl but > convert my tidy library to a c compiled component and would love to do > others components as well. > > I can compile my component without error but Gambas never seems to find > it. Any help you can give would be greatly appreciated. > > I am including the component source files and the template config for > your review. I am sure I have missed something. > > The component must be installed after having been compiled. I will create gb.gsl in the Gambas repository and grant you a write access to it. You must learn how to use subversion (there is an howto in the wiki), you must have a sourceforge account and you must give me its name! Regards, -- Beno?t Minisini From rmorgan62 at ...176... Mon Jan 30 01:58:40 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Sun, 29 Jan 2012 16:58:40 -0800 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: <4F25D1D8.7080903@...1...> References: <4F25D1D8.7080903@...1...> Message-ID: Thank you, My account at SourceForge is rmorgan62. I have not used svn for a few years so I will need to brush up on it. I've been using git and mercurial mostly. Randall 2012/1/29 Beno?t Minisini > Le 29/01/2012 23:57, Randall Morgan a ?crit : > > Hi Benoit, > > > > I am still working on just getting a single function version of a > > component to compile and be recognized by Gambas3. > > > > I am using Ubuntu 10.10 and 10.04 (two machines). I have used a dozen or > > more gb.gsl.conf file but I am including > > my work here as to tar files for your review. I truly want to understand > > this process so I can contribute not only gsl but > > convert my tidy library to a c compiled component and would love to do > > others components as well. > > > > I can compile my component without error but Gambas never seems to find > > it. Any help you can give would be greatly appreciated. > > > > I am including the component source files and the template config for > > your review. I am sure I have missed something. > > > > > > The component must be installed after having been compiled. > > I will create gb.gsl in the Gambas repository and grant you a write > access to it. > > You must learn how to use subversion (there is an howto in the wiki), > you must have a sourceforge account and you must give me its name! > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Mon Jan 30 02:02:30 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Sun, 29 Jan 2012 17:02:30 -0800 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: References: <4F25D1D8.7080903@...1...> Message-ID: Does installing the component require recompiling Gambas or setting some configuration file? If so, what is needed? I am researching this but can't seem to find the info. Thanks! On Sun, Jan 29, 2012 at 4:58 PM, Randall Morgan wrote: > Thank you, > > My account at SourceForge is rmorgan62. I have not used svn for a few > years so I will need to brush up on it. I've been using git and mercurial > mostly. > > Randall > > > > > 2012/1/29 Beno?t Minisini > >> Le 29/01/2012 23:57, Randall Morgan a ?crit : >> > Hi Benoit, >> > >> > I am still working on just getting a single function version of a >> > component to compile and be recognized by Gambas3. >> > >> > I am using Ubuntu 10.10 and 10.04 (two machines). I have used a dozen or >> > more gb.gsl.conf file but I am including >> > my work here as to tar files for your review. I truly want to understand >> > this process so I can contribute not only gsl but >> > convert my tidy library to a c compiled component and would love to do >> > others components as well. >> > >> > I can compile my component without error but Gambas never seems to find >> > it. Any help you can give would be greatly appreciated. >> > >> > I am including the component source files and the template config for >> > your review. I am sure I have missed something. >> > >> > >> >> The component must be installed after having been compiled. >> >> I will create gb.gsl in the Gambas repository and grant you a write >> access to it. >> >> You must learn how to use subversion (there is an howto in the wiki), >> you must have a sourceforge account and you must give me its name! >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-devel mailing list >> Gambas-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-devel >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Jan 30 02:52:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Jan 2012 02:52:09 +0100 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: References: <4F25D1D8.7080903@...1...> Message-ID: <4F25F7C9.4080206@...1...> Le 30/01/2012 02:02, Randall Morgan a ?crit : > Does installing the component require recompiling Gambas or setting some > configuration file? If so, what is needed? I am researching this but can't > seem to find the info. > > Thanks! > I have updated the Gambas configuration files for gb.gsl. You can look at what I have changed in the last revision to see what should be modified when you add a component (one line in configure.ac, and one line in the top-level Makefile.am). Then I fixed the mistakes gb_gsl.c. Now everything works (at least on my computer!), and I can do "Print Gsl.IntPow2(4)" if I want. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Mon Jan 30 02:59:21 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Sun, 29 Jan 2012 17:59:21 -0800 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: <4F25F7C9.4080206@...1...> References: <4F25D1D8.7080903@...1...> <4F25F7C9.4080206@...1...> Message-ID: Thank you Benoit! I will review the changes. Randall 2012/1/29 Beno?t Minisini > Le 30/01/2012 02:02, Randall Morgan a ?crit : > > Does installing the component require recompiling Gambas or setting some > > configuration file? If so, what is needed? I am researching this but > can't > > seem to find the info. > > > > Thanks! > > > > I have updated the Gambas configuration files for gb.gsl. You can look > at what I have changed in the last revision to see what should be > modified when you add a component (one line in configure.ac, and one > line in the top-level Makefile.am). > > Then I fixed the mistakes gb_gsl.c. Now everything works (at least on my > computer!), and I can do "Print Gsl.IntPow2(4)" if I want. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Mon Jan 30 04:24:17 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Sun, 29 Jan 2012 19:24:17 -0800 Subject: [Gambas-devel] Gambas not finding component In-Reply-To: References: <4F25D1D8.7080903@...1...> <4F25F7C9.4080206@...1...> Message-ID: Hi Benoit, I just reconf-all, configured and compiled Gambas but hit this error in the make install stage: Making install in gb.gsl make[1]: Entering directory `/home/randy/Documents/MyProjects/gambas3-dev/trunk/gb.gsl' make[1]: Leaving directory `/home/randy/Documents/MyProjects/gambas3-dev/trunk/gb.gsl' make[1]: *** No rule to make target 'install'. Stop make: *** [install-recursive] Error 1 Is there something missing from the conf file? Randall On Sun, Jan 29, 2012 at 5:59 PM, Randall Morgan wrote: > Thank you Benoit! > > I will review the changes. > > Randall > > 2012/1/29 Beno?t Minisini > >> Le 30/01/2012 02:02, Randall Morgan a ?crit : >> > Does installing the component require recompiling Gambas or setting some >> > configuration file? If so, what is needed? I am researching this but >> can't >> > seem to find the info. >> > >> > Thanks! >> > >> >> I have updated the Gambas configuration files for gb.gsl. You can look >> at what I have changed in the last revision to see what should be >> modified when you add a component (one line in configure.ac, and one >> line in the top-level Makefile.am). >> >> Then I fixed the mistakes gb_gsl.c. Now everything works (at least on my >> computer!), and I can do "Print Gsl.IntPow2(4)" if I want. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-devel mailing list >> Gambas-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-devel >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wally at ...687... Mon Jan 30 11:46:45 2012 From: wally at ...687... (Wally) Date: Mon, 30 Jan 2012 11:46:45 +0100 Subject: [Gambas-devel] Form.X' is incorrectly overridden in class 'FMain' Message-ID: <1839149.Ly6ntbbZQg@...688...> What kind of problem is this : "Form.X' is incorrectly overridden in class 'FMain'" is this a problem in project code or a Gambas3 build or configuration ? What can i do to fix it ? thx wally From gambas at ...1... Mon Jan 30 23:59:42 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Jan 2012 23:59:42 +0100 Subject: [Gambas-devel] Form.X' is incorrectly overridden in class 'FMain' In-Reply-To: <1839149.Ly6ntbbZQg@...688...> References: <1839149.Ly6ntbbZQg@...688...> Message-ID: <4F2720DE.3080307@...1...> Le 30/01/2012 11:46, Wally a ?crit : > What kind of problem is this : > > "Form.X' is incorrectly overridden in class 'FMain'" > > is this a problem in project code or a Gambas3 build or configuration ? > What can i do to fix it ? > > thx wally > You have overriden the symbol X in your class Main, but X is already defined in the parent class. Choose another name! Regards, -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 31 03:09:42 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 30 Jan 2012 18:09:42 -0800 Subject: [Gambas-devel] No Rule to make Target Message-ID: Hi Benoit, I reverted back to 4431 and I get the same error I got when I checkout that version "No Rule to make target 'all'. Stop" When make enters the gsl directory. the first time around my solution was to delete the folder and recreate it using the make-component script. So now I'd like to know how to solve this error correctly so I can compile the gsl component. Also, what is the proper compilation cycle for component development? Do I need to recompile gambas after each change or can I simply compile the component? Thanks -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jan 31 03:52:53 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 03:52:53 +0100 Subject: [Gambas-devel] No Rule to make Target In-Reply-To: References: Message-ID: <4F275785.5090007@...1...> Le 31/01/2012 03:09, Randall Morgan a ?crit : > Hi Benoit, > > I reverted back to 4431 and I get the same error I got when I checkout that > version "No Rule to make target 'all'. Stop" When make enters the gsl > directory. > > the first time around my solution was to delete the folder and recreate it > using the make-component script. So now I'd like to know how to solve this > error > correctly so I can compile the gsl component. > > Also, what is the proper compilation cycle for component development? Do I > need to recompile gambas after each change or can I simply compile the > component? > > Thanks > Of course you must not delete anything by hand as soon as you are working in a subversion repository. Once you have checked out a gambas repository, you have to do a './reconf && ./configure -C' to create all the Makefiles. I suggest you start from scratch again (from a fresh checkout). Once Makefiles are generated, you just have to use "make" and "make install" in the gb.gsl directory. You have to frequently update your repository to get the last changes. And you have to run './reconf && ./configure -C' when an autoconf file (configure.ac) changes, and sometimes when an automake file (Makefile.am) changes. Sometimes it is not needed with Makefile.am changes, but I don't know why yet. :-) -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 31 04:13:15 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 30 Jan 2012 19:13:15 -0800 Subject: [Gambas-devel] No Rule to make Target In-Reply-To: <4F275785.5090007@...1...> References: <4F275785.5090007@...1...> Message-ID: Hi Benoit, It was on a fresh checkout that I got that error after running ./reconf-all; ./configure -C from the gambas project directory. Then again after reverting back. This was why I recreated the gsl directory with the make-component script. So what am I missing? 2012/1/30 Beno?t Minisini > Le 31/01/2012 03:09, Randall Morgan a ?crit : > > Hi Benoit, > > > > I reverted back to 4431 and I get the same error I got when I checkout > that > > version "No Rule to make target 'all'. Stop" When make enters the gsl > > directory. > > > > the first time around my solution was to delete the folder and recreate > it > > using the make-component script. So now I'd like to know how to solve > this > > error > > correctly so I can compile the gsl component. > > > > Also, what is the proper compilation cycle for component development? Do > I > > need to recompile gambas after each change or can I simply compile the > > component? > > > > Thanks > > > > > Of course you must not delete anything by hand as soon as you are > working in a subversion repository. > > Once you have checked out a gambas repository, you have to do a > './reconf && ./configure -C' to create all the Makefiles. > > I suggest you start from scratch again (from a fresh checkout). > > Once Makefiles are generated, you just have to use "make" and "make > install" in the gb.gsl directory. > > You have to frequently update your repository to get the last changes. > > And you have to run './reconf && ./configure -C' when an autoconf file > (configure.ac) changes, and sometimes when an automake file > (Makefile.am) changes. Sometimes it is not needed with Makefile.am > changes, but I don't know why yet. :-) > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 31 04:16:39 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Mon, 30 Jan 2012 19:16:39 -0800 Subject: [Gambas-devel] No Rule to make Target In-Reply-To: References: <4F275785.5090007@...1...> Message-ID: Oh, and Jeurgen also got this error from the revision 4431 checkout where you added the gsl folder. Even after a ./reconf-all and ./configure -C On Mon, Jan 30, 2012 at 7:13 PM, Randall Morgan wrote: > Hi Benoit, > > It was on a fresh checkout that I got that error after running > ./reconf-all; ./configure -C from the gambas project directory. Then again > after reverting back. This was why I recreated the gsl directory with the > make-component script. So what am I missing? > > > > 2012/1/30 Beno?t Minisini > >> Le 31/01/2012 03:09, Randall Morgan a ?crit : >> > Hi Benoit, >> > >> > I reverted back to 4431 and I get the same error I got when I checkout >> that >> > version "No Rule to make target 'all'. Stop" When make enters the gsl >> > directory. >> > >> > the first time around my solution was to delete the folder and recreate >> it >> > using the make-component script. So now I'd like to know how to solve >> this >> > error >> > correctly so I can compile the gsl component. >> > >> > Also, what is the proper compilation cycle for component development? >> Do I >> > need to recompile gambas after each change or can I simply compile the >> > component? >> > >> > Thanks >> > >> >> >> Of course you must not delete anything by hand as soon as you are >> working in a subversion repository. >> >> Once you have checked out a gambas repository, you have to do a >> './reconf && ./configure -C' to create all the Makefiles. >> >> I suggest you start from scratch again (from a fresh checkout). >> >> Once Makefiles are generated, you just have to use "make" and "make >> install" in the gb.gsl directory. >> >> You have to frequently update your repository to get the last changes. >> >> And you have to run './reconf && ./configure -C' when an autoconf file >> (configure.ac) changes, and sometimes when an automake file >> (Makefile.am) changes. Sometimes it is not needed with Makefile.am >> changes, but I don't know why yet. :-) >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-devel mailing list >> Gambas-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-devel >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jan 31 10:03:03 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 10:03:03 +0100 Subject: [Gambas-devel] No Rule to make Target In-Reply-To: References: <4F275785.5090007@...1...> Message-ID: <4F27AE47.50703@...1...> Le 31/01/2012 04:16, Randall Morgan a ?crit : > Oh, and Jeurgen also got this error from the revision 4431 checkout where > you added the gsl folder. Even after a ./reconf-all and ./configure -C > > OK, sorry, it's my fault. For some reasons 'svn add gb.gsl' didn't add all the files. It should be fixed in revision #4436. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 31 10:22:09 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 01:22:09 -0800 Subject: [Gambas-devel] No Rule to make Target In-Reply-To: <4F27AE47.50703@...1...> References: <4F275785.5090007@...1...> <4F27AE47.50703@...1...> Message-ID: Thanks Benoit! I wil checkout 4438 and get back to work on the gsl component. Randall 2012/1/31 Beno?t Minisini > Le 31/01/2012 04:16, Randall Morgan a ?crit : > > Oh, and Jeurgen also got this error from the revision 4431 checkout where > > you added the gsl folder. Even after a ./reconf-all and ./configure -C > > > > > > OK, sorry, it's my fault. For some reasons 'svn add gb.gsl' didn't add > all the files. > > It should be fixed in revision #4436. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wally at ...687... Tue Jan 31 10:59:45 2012 From: wally at ...687... (Wally) Date: Tue, 31 Jan 2012 10:59:45 +0100 Subject: [Gambas-devel] Form.X' is incorrectly overridden in class 'FMain' In-Reply-To: <4F2720DE.3080307@...1...> References: <1839149.Ly6ntbbZQg@...688...> <4F2720DE.3080307@...1...> Message-ID: <2369624.LqCCW2iHAp@...688...> Hi Benoit, in fact i use a lowercase "x" . I always thought the Form.X property is a uppercase "X" as given in the error popup. (see attachment) wally On Monday, January 30, 2012 23:59:42 Beno?t Minisini wrote: > Le 30/01/2012 11:46, Wally a ?crit : > > What kind of problem is this : > > > > "Form.X' is incorrectly overridden in class 'FMain'" > > > > is this a problem in project code or a Gambas3 build or configuration ? > > What can i do to fix it ? > > > > thx wally > > You have overriden the symbol X in your class Main, but X is already > defined in the parent class. Choose another name! > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: testFitGauss-0.0.2.tar.gz Type: application/x-compressed-tar Size: 5160 bytes Desc: not available URL: From rmorgan62 at ...176... Tue Jan 31 15:06:49 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 06:06:49 -0800 Subject: [Gambas-devel] Constant Macro Use Message-ID: Hi Benoit, I have many mathmatical constance that need to be declared in the gsl class. I figure there are two ways fo doing this, a static property that is read only or a class constant. First, I want to make sure constance are usable like this; GSL.M_E /* e exponent */. If so that is the way I want to go. However, my code below results in a return value of zero: GB_CONSTANT("M_LOG10E", "f", 0.43429448190325182765112891892), /* log_10 (e) */ So I am wondering if I have miss used the GB_CONSTANT macro? I have placed it in the Class Desc structure. I also found that I cannot use the predefined constants in libgsl, as these themselves are macros. Could you tell me if I should be using a static property set as read only, or if a GB_CONSTANT is correct? Thanks, Randall -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 31 20:28:52 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 11:28:52 -0800 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: References: Message-ID: Hi Benoit, I have quoted the value but then all my constants return garbage values. I also tried shortening the values to 16 digits still, I get garbage out. The GB_CONSTANT macro works as expected with strings however. On Tue, Jan 31, 2012 at 6:06 AM, Randall Morgan wrote: > Hi Benoit, > > I have many mathmatical constance that need to be declared in the gsl > class. I figure there are two ways fo doing this, a static property that is > read only or a class constant. > First, I want to make sure constance are usable like this; GSL.M_E /* e > exponent */. If so that is the way I want to go. However, my code below > results in a return value of > zero: > > GB_CONSTANT("M_LOG10E", "f", 0.43429448190325182765112891892), /* > log_10 (e) */ > > So I am wondering if I have miss used the GB_CONSTANT macro? > > I have placed it in the Class Desc structure. I also found that I cannot > use the predefined constants in libgsl, as these themselves are macros. > > Could you tell me if I should be using a static property set as read only, > or if a GB_CONSTANT is correct? > > Thanks, > > Randall > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 31 20:33:39 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 11:33:39 -0800 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: References: Message-ID: Relevant code from class description structure: GB_CONSTANT("M_E", "f", "2.7182818284590"), /* e 4523536028747135 */ GB_CONSTANT("M_LOGE", "f", "1.44269504088896340735992468100"), /* LOG_E */ GB_CONSTANT("M_LOG10E", "f", "0.43429448190325182765112891892"), /* log_10 (e) */ GB_CONSTANT("M_SQRT2", "f", "1.41421356237309504880168872421"), /* sqrt(2) */ GB_CONSTANT("M_SQRT1_2", "f", "0.70710678118654752440084436210"), /* sqrt(1/2) */ GB_CONSTANT("M_SQRT3", "f", "1.73205080756887729352744634151"), /* sqrt(3) */ GB_CONSTANT("M_PI", "f", "3.14159265358979323846264338328"), /* pi */ GB_CONSTANT("M_PI_2", "f", "1.57079632679489661923132169164"), /* pi/2 */ GB_CONSTANT("M_PI_4", "f", "0.78539816339744830961566084582"), /* pi/4 */ GB_CONSTANT("M_SQRTPI", "f", "1.77245385090551602729816748334"), /* sqrt(pi) */ GB_CONSTANT("M_2_SQRTPI", "f", "1.12837916709551257389615890312"), /* 2/sqrt(pi) */ GB_CONSTANT("M_1_PI", "f", "0.31830988618379067153776752675"), /* 1/pi */ GB_CONSTANT("M_2_PI", "f", "0.63661977236758134307553505349"), /* 2/pi */ GB_CONSTANT("M_LN10", "f", "2.30258509299404568401799145468"), /* ln(10) */ GB_CONSTANT("M_LN2", "f", "0.69314718055994530941723212146"), /* ln(2) */ GB_CONSTANT("M_LNPI", "f", "1.14472988584940017414342735135"), /* ln(pi) */ GB_CONSTANT("M_EULER", "f", "0.57721566490153286060651209008"), /* Euler constant */ On Tue, Jan 31, 2012 at 11:28 AM, Randall Morgan wrote: > Hi Benoit, > > I have quoted the value but then all my constants return garbage values. I > also tried shortening the values to 16 digits still, I get garbage out. > > The GB_CONSTANT macro works as expected with strings however. > > > > On Tue, Jan 31, 2012 at 6:06 AM, Randall Morgan wrote: > >> Hi Benoit, >> >> I have many mathmatical constance that need to be declared in the gsl >> class. I figure there are two ways fo doing this, a static property that is >> read only or a class constant. >> First, I want to make sure constance are usable like this; GSL.M_E /* e >> exponent */. If so that is the way I want to go. However, my code below >> results in a return value of >> zero: >> >> GB_CONSTANT("M_LOG10E", "f", 0.43429448190325182765112891892), /* >> log_10 (e) */ >> >> So I am wondering if I have miss used the GB_CONSTANT macro? >> >> I have placed it in the Class Desc structure. I also found that I cannot >> use the predefined constants in libgsl, as these themselves are macros. >> >> Could you tell me if I should be using a static property set as read >> only, or if a GB_CONSTANT is correct? >> >> Thanks, >> >> Randall >> >> -- >> If you ask me if it can be done. The answer is YES, it can always be >> done. The correct questions however are... What will it cost, and how long >> will it take? >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jan 31 20:34:49 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 20:34:49 +0100 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: References: Message-ID: <4F284259.4000409@...1...> Le 31/01/2012 20:28, Randall Morgan a ?crit : > Hi Benoit, > > I have quoted the value but then all my constants return garbage values. I > also tried shortening the values to 16 digits still, I get garbage out. > > The GB_CONSTANT macro works as expected with strings however. > Yep yep. I'm currently realizing that floating point constants are not correctly supported by the native class loader. I will see what I can do and I will tell you... -- Beno?t Minisini From gambas at ...1... Tue Jan 31 20:38:55 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 20:38:55 +0100 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: References: Message-ID: <4F28434F.5010400@...1...> Le 31/01/2012 20:33, Randall Morgan a ?crit : > Relevant code from class description structure: > > GB_CONSTANT("M_E", "f", "2.7182818284590"), /* e 4523536028747135 */ > GB_CONSTANT("M_LOGE", "f", "1.44269504088896340735992468100"), /* > LOG_E */ > GB_CONSTANT("M_LOG10E", "f", "0.43429448190325182765112891892"), /* > log_10 (e) */ > GB_CONSTANT("M_SQRT2", "f", "1.41421356237309504880168872421"), /* > sqrt(2) */ > GB_CONSTANT("M_SQRT1_2", "f", "0.70710678118654752440084436210"), > /* sqrt(1/2) */ > GB_CONSTANT("M_SQRT3", "f", "1.73205080756887729352744634151"), > /* sqrt(3) */ > GB_CONSTANT("M_PI", "f", "3.14159265358979323846264338328"), > /* pi */ > GB_CONSTANT("M_PI_2", "f", "1.57079632679489661923132169164"), > /* pi/2 */ > GB_CONSTANT("M_PI_4", "f", "0.78539816339744830961566084582"), > /* pi/4 */ > GB_CONSTANT("M_SQRTPI", "f", "1.77245385090551602729816748334"), > /* sqrt(pi) */ > GB_CONSTANT("M_2_SQRTPI", "f", "1.12837916709551257389615890312"), > /* 2/sqrt(pi) */ > GB_CONSTANT("M_1_PI", "f", "0.31830988618379067153776752675"), > /* 1/pi */ > GB_CONSTANT("M_2_PI", "f", "0.63661977236758134307553505349"), > /* 2/pi */ > GB_CONSTANT("M_LN10", "f", "2.30258509299404568401799145468"), > /* ln(10) */ > GB_CONSTANT("M_LN2", "f", "0.69314718055994530941723212146"), > /* ln(2) */ > GB_CONSTANT("M_LNPI", "f", "1.14472988584940017414342735135"), > /* ln(pi) */ > GB_CONSTANT("M_EULER", "f", "0.57721566490153286060651209008"), > /* Euler constant */ > This will be the supported syntax. Just remove the "M_" part of the constant name, it is not necessary, as they are element of the Gsl class. Regards, -- Beno?t Minisini From rmorgan62 at ...176... Tue Jan 31 20:42:17 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 11:42:17 -0800 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: <4F28434F.5010400@...1...> References: <4F28434F.5010400@...1...> Message-ID: Ok will do, Thank you again! 2012/1/31 Beno?t Minisini > Le 31/01/2012 20:33, Randall Morgan a ?crit : > > Relevant code from class description structure: > > > > GB_CONSTANT("M_E", "f", "2.7182818284590"), /* e 4523536028747135 > */ > > GB_CONSTANT("M_LOGE", "f", "1.44269504088896340735992468100"), /* > > LOG_E */ > > GB_CONSTANT("M_LOG10E", "f", "0.43429448190325182765112891892"), > /* > > log_10 (e) */ > > GB_CONSTANT("M_SQRT2", "f", "1.41421356237309504880168872421"), > /* > > sqrt(2) */ > > GB_CONSTANT("M_SQRT1_2", "f", "0.70710678118654752440084436210"), > > /* sqrt(1/2) */ > > GB_CONSTANT("M_SQRT3", "f", "1.73205080756887729352744634151"), > > /* sqrt(3) */ > > GB_CONSTANT("M_PI", "f", "3.14159265358979323846264338328"), > > /* pi */ > > GB_CONSTANT("M_PI_2", "f", "1.57079632679489661923132169164"), > > /* pi/2 */ > > GB_CONSTANT("M_PI_4", "f", "0.78539816339744830961566084582"), > > /* pi/4 */ > > GB_CONSTANT("M_SQRTPI", "f", "1.77245385090551602729816748334"), > > /* sqrt(pi) */ > > GB_CONSTANT("M_2_SQRTPI", "f", "1.12837916709551257389615890312"), > > /* 2/sqrt(pi) */ > > GB_CONSTANT("M_1_PI", "f", "0.31830988618379067153776752675"), > > /* 1/pi */ > > GB_CONSTANT("M_2_PI", "f", "0.63661977236758134307553505349"), > > /* 2/pi */ > > GB_CONSTANT("M_LN10", "f", "2.30258509299404568401799145468"), > > /* ln(10) */ > > GB_CONSTANT("M_LN2", "f", "0.69314718055994530941723212146"), > > /* ln(2) */ > > GB_CONSTANT("M_LNPI", "f", "1.14472988584940017414342735135"), > > /* ln(pi) */ > > GB_CONSTANT("M_EULER", "f", "0.57721566490153286060651209008"), > > /* Euler constant */ > > > > This will be the supported syntax. Just remove the "M_" part of the > constant name, it is not necessary, as they are element of the Gsl class. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 31 21:17:55 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 12:17:55 -0800 Subject: [Gambas-devel] Constant Macro Use In-Reply-To: References: <4F28434F.5010400@...1...> Message-ID: I just remembered why I included the "M_" it is because some of the constants contain M_x_ where x is a digit. So removing "M_" results in an illegal name. Randall On Tue, Jan 31, 2012 at 11:42 AM, Randall Morgan wrote: > Ok will do, > > Thank you again! > > > 2012/1/31 Beno?t Minisini > >> Le 31/01/2012 20:33, Randall Morgan a ?crit : >> > Relevant code from class description structure: >> > >> > GB_CONSTANT("M_E", "f", "2.7182818284590"), /* e >> 4523536028747135 */ >> > GB_CONSTANT("M_LOGE", "f", "1.44269504088896340735992468100"), /* >> > LOG_E */ >> > GB_CONSTANT("M_LOG10E", "f", "0.43429448190325182765112891892"), >> /* >> > log_10 (e) */ >> > GB_CONSTANT("M_SQRT2", "f", "1.41421356237309504880168872421"), >> /* >> > sqrt(2) */ >> > GB_CONSTANT("M_SQRT1_2", "f", "0.70710678118654752440084436210"), >> > /* sqrt(1/2) */ >> > GB_CONSTANT("M_SQRT3", "f", "1.73205080756887729352744634151"), >> > /* sqrt(3) */ >> > GB_CONSTANT("M_PI", "f", "3.14159265358979323846264338328"), >> > /* pi */ >> > GB_CONSTANT("M_PI_2", "f", "1.57079632679489661923132169164"), >> > /* pi/2 */ >> > GB_CONSTANT("M_PI_4", "f", "0.78539816339744830961566084582"), >> > /* pi/4 */ >> > GB_CONSTANT("M_SQRTPI", "f", "1.77245385090551602729816748334"), >> > /* sqrt(pi) */ >> > GB_CONSTANT("M_2_SQRTPI", "f", "1.12837916709551257389615890312"), >> > /* 2/sqrt(pi) */ >> > GB_CONSTANT("M_1_PI", "f", "0.31830988618379067153776752675"), >> > /* 1/pi */ >> > GB_CONSTANT("M_2_PI", "f", "0.63661977236758134307553505349"), >> > /* 2/pi */ >> > GB_CONSTANT("M_LN10", "f", "2.30258509299404568401799145468"), >> > /* ln(10) */ >> > GB_CONSTANT("M_LN2", "f", "0.69314718055994530941723212146"), >> > /* ln(2) */ >> > GB_CONSTANT("M_LNPI", "f", "1.14472988584940017414342735135"), >> > /* ln(pi) */ >> > GB_CONSTANT("M_EULER", "f", "0.57721566490153286060651209008"), >> > /* Euler constant */ >> > >> >> This will be the supported syntax. Just remove the "M_" part of the >> constant name, it is not necessary, as they are element of the Gsl class. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-devel mailing list >> Gambas-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-devel >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmorgan62 at ...176... Tue Jan 31 23:15:42 2012 From: rmorgan62 at ...176... (Randall Morgan) Date: Tue, 31 Jan 2012 14:15:42 -0800 Subject: [Gambas-devel] Form.X' is incorrectly overridden in class 'FMain' In-Reply-To: <2369624.LqCCW2iHAp@...688...> References: <1839149.Ly6ntbbZQg@...688...> <4F2720DE.3080307@...1...> <2369624.LqCCW2iHAp@...688...> Message-ID: In most cases Gambas is case insensative. X and x are equal, Print, print, pRint are also all equal. On Tue, Jan 31, 2012 at 1:59 AM, Wally wrote: > Hi Benoit, > > in fact i use a lowercase "x" . > I always thought the Form.X property is a uppercase "X" as given in the > error > popup. (see attachment) > > wally > > > On Monday, January 30, 2012 23:59:42 Beno?t Minisini wrote: > > Le 30/01/2012 11:46, Wally a ?crit : > > > What kind of problem is this : > > > > > > "Form.X' is incorrectly overridden in class 'FMain'" > > > > > > is this a problem in project code or a Gambas3 build or configuration ? > > > What can i do to fix it ? > > > > > > thx wally > > > > You have overriden the symbol X in your class Main, but X is already > > defined in the parent class. Choose another name! > > > > Regards, > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- An HTML attachment was scrubbed... URL: