From: Alfredo C. <al...@ac...> - 2005-07-18 01:15:12
|
Hi: Compiling the test programs works ok on my SuSE 9.3 system. However, if I include rlib.h and rlib_input in my own program, I get the following errors: /usr/include/rlib/rlib.h:739: error: declaration does not declare anything /usr/include/rlib/rlib_input.h:41: error: declaration does not declare anything I think it might be a switch I'm missing, but looking at the makefile used by the test programs, I can not figure out what I need. Anybody have a suggestion to make it compile right? I'm using gcc 3.3.5 and glibc 2.3.4. Thank you and regards. -- Alfredo J. Cole Grupo ACyC |
From: Bob D. <bd...@si...> - 2005-07-19 14:34:35
|
You need to compile w/ the correct cflags so include this: `pkg-config --cflags --libs rlib` - bob On Sun, 2005-07-17 at 19:18 -0600, Alfredo Cole wrote: > Hi: > > Compiling the test programs works ok on my SuSE 9.3 system. However, if I > include rlib.h and rlib_input in my own program, I get the following errors: > > /usr/include/rlib/rlib.h:739: error: declaration does not declare anything > > /usr/include/rlib/rlib_input.h:41: error: declaration does not declare > anything > > I think it might be a switch I'm missing, but looking at the makefile used by > the test programs, I can not figure out what I need. Anybody have a > suggestion to make it compile right? > > I'm using gcc 3.3.5 and glibc 2.3.4. > > Thank you and regards. > |
From: Alfredo C. <al...@ac...> - 2005-07-19 15:45:26
|
El Martes, 19 de Julio de 2005 08:33, Bob Doan escribi=F3: > You need to compile w/ the correct cflags > > so include this: `pkg-config --cflags --libs rlib` > > - bob > I use CodeForge for development, and I included your suggestion. The result= s=20 are the same. The offending line is: gpointer private; And the message is: /usr/include/rlib/rlib.h:740: error: declaration does not declare anything /usr/include/rlib/rlib.h:740: error: syntax error before `private' /usr/include/rlib/rlib.h:750: error: syntax error before `private' /usr/include/rlib/rlib_input.h:41: error: declaration does not declare=20 anything /usr/include/rlib/rlib_input.h:41: error: syntax error before `private' My program is a C++ program, but have not had any problems with other=20 libraries, ie: MySQL C API. Thank you. =2D-=20 Alfredo J. Cole Grupo ACyC |
From: Bob D. <bd...@si...> - 2005-07-19 16:10:53
|
Try it like this: pkg-config --cflags --libs rlib glib-2.0 On Tue, 2005-07-19 at 09:49 -0600, Alfredo Cole wrote: > El Martes, 19 de Julio de 2005 08:33, Bob Doan escribi=C3=B3: > > You need to compile w/ the correct cflags > > > > so include this: `pkg-config --cflags --libs rlib` > > > > - bob > > >=20 > I use CodeForge for development, and I included your suggestion. The re= sults=20 > are the same. The offending line is: >=20 > gpointer private; >=20 > And the message is: >=20 > /usr/include/rlib/rlib.h:740: error: declaration does not declare anyth= ing > /usr/include/rlib/rlib.h:740: error: syntax error before `private' > /usr/include/rlib/rlib.h:750: error: syntax error before `private' >=20 > /usr/include/rlib/rlib_input.h:41: error: declaration does not declare=20 > anything > /usr/include/rlib/rlib_input.h:41: error: syntax error before `private' >=20 > My program is a C++ program, but have not had any problems with other=20 > libraries, ie: MySQL C API. >=20 > Thank you. >=20 |
From: Alfredo C. <al...@ac...> - 2005-07-19 16:59:23
|
El Martes, 19 de Julio de 2005 10:10, Bob Doan escribi=C3=B3: > Try it like this: > > pkg-config --cflags --libs rlib glib-2.0 > These are the complete options I'm passing to the compiler: =2DI. -I/usr/include/libxml2/ -I/usr/include/rlib/=20 =2DI/opt/gnome/include/glib-2.0/ -I/opt/gnome/lib/glib-2.0/include/=20 =2DI/usr/include -D_GNU_SOURCE -DPIC -DUNDEF_HAVE_INITGROUPS -fmessage-leng= th=3D0=20 =2Dw -fPIC -fexceptions -Wno-deprecated -fno-strict-aliasing `wx-config=20 =2D-cxxflags` `pkg-config --cflags rlib glib-2.0` To the linker (although it never gets to this phase): =2DL. -L/usr/lib/mysql/ -lfixed -lxbase=20 =2Dlkeylok /usr/lib/mysql/libmysqlclient.a /usr/lib/libr.a /usr/lib/librpdf= =2Ea=20 `pkg-config --libs rlib glib-2.0` `wx-config --static --libs` And still will not compile. If I remove the two include files (rlib.h and=20 rlib_input.h), the project again compiles ok. Please advise. Regards. =2D-=20 Alfredo J. Cole Grupo ACyC |
From: Bob D. <bd...@si...> - 2005-07-19 20:26:50
|
Ok. Then in rlib/src/examples/c do a make clean and see what the ccflags are You should be able to figure it out. Let me know if RLIB's pkg-config stuff is not correct On Tue, 2005-07-19 at 09:49 -0600, Alfredo Cole wrote: > El Martes, 19 de Julio de 2005 08:33, Bob Doan escribi=C3=B3: > > You need to compile w/ the correct cflags > > > > so include this: `pkg-config --cflags --libs rlib` > > > > - bob > > >=20 > I use CodeForge for development, and I included your suggestion. The re= sults=20 > are the same. The offending line is: >=20 > gpointer private; >=20 > And the message is: >=20 > /usr/include/rlib/rlib.h:740: error: declaration does not declare anyth= ing > /usr/include/rlib/rlib.h:740: error: syntax error before `private' > /usr/include/rlib/rlib.h:750: error: syntax error before `private' >=20 > /usr/include/rlib/rlib_input.h:41: error: declaration does not declare=20 > anything > /usr/include/rlib/rlib_input.h:41: error: syntax error before `private' >=20 > My program is a C++ program, but have not had any problems with other=20 > libraries, ie: MySQL C API. >=20 > Thank you. >=20 |