help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking Problem


From: Paulo Matos
Subject: Re: Linking Problem
Date: 10 Nov 2005 01:01:13 -0800
User-agent: G2/0.2

Well, I got gcc-3.0.4 and I tried to compile but a lot of errors have
been generated and the compilation never finishes. I get:
cc -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes   -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp
-I./config -I./../include cp/error.c -o cp/error.o
cp/error.c:174: warning: initialization from incompatible pointer type
cp/error.c:174: warning: initialization from incompatible pointer type
cp/error.c:174: warning: initialization from incompatible pointer type
cp/error.c:175: warning: initialization from incompatible pointer type
cp/error.c:175: warning: initialization from incompatible pointer type
gcc -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes   -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp
-I./config -I./../include cp/lex.c -o cp/lex.o
cp/lex.c:52: error: parse error before "YYSTYPE"
cp/lex.c:52: warning: function declaration isn't a prototype
cp/lex.c:89: error: parse error before "yylval"
cp/lex.c:89: warning: type defaults to `int' in declaration of `yylval'
cp/lex.c:89: warning: data definition has no type or storage class
cp/lex.c:518: error: `SCSPEC' undeclared here (not in a function)
cp/lex.c:518: error: initializer element is not constant
cp/lex.c:518: error: (near initialization for `rid_to_yy[0]')
cp/lex.c:519: error: `TYPESPEC' undeclared here (not in a function)
cp/lex.c:519: error: initializer element is not constant
...


I'm compiling with 2.95. For some reason compiling with 3.3 will not
work either but for other reasons. I imagine it has to do with flex.
Using version 2.5.4.
Do I have any way out?

Paulo Matos

Paul Pluzhnikov wrote:
> pocmatos@gmail.com writes:
>
> > I'm currently trying to link a program to a library which results in
> > error. The library is a cplex75 library which my group bought to ilog a
> > few years ago. I'm currently running g++ :
> > $ g++-3.3 -v
>
> The library was probably not built with that version of g++
> (gcc-3.3 was released on May 14, 2003, the library name implies
> that it was compiled with g++3.0).
>
> You can't link together code compiled with different versions of gcc:
> ABI changes cause such code to be link-incompatible.
>
> > This is kind of sad because I cannot create a new cplex library since I
> > do not have access to the code and I cannot downgrade g++ since I'm not
> > admin
>
> You don't need to have administrative privileges on a machine to
> install gcc-3.0 on it. Just grab the source distribution, and
> configure it with
>
>   ./configure --prefix=$HOME/gcc-3.0 --enable-languages=c,c++
>   make ; make install
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]