Re: Linking Problem

2008-02-07 Thread mearvk
On Feb 7, 2:55 pm, mearvk <[EMAIL PROTECTED]> wrote: > On Feb 7, 1:59 am, Paul Pluzhnikov <[EMAIL PROTECTED]> wrote: > > > > > > > mearvk <[EMAIL PROTECTED]> writes: > > > "g++ -c lip.C" gives me lip.o. > > > "g++ -c test.C" gives me test.o > > > "g++ -o out test.o lip.o -lm" should give me 'out' a

Re: Linking Problem

2008-02-07 Thread mearvk
On Feb 7, 1:59 am, Paul Pluzhnikov <[EMAIL PROTECTED]> wrote: > mearvk <[EMAIL PROTECTED]> writes: > > "g++ -c lip.C" gives me lip.o. > > "g++ -c test.C" gives me test.o > > "g++ -o out test.o lip.o -lm" should give me 'out' as an executable > > but it doesn't, instead giving me: > > > lip.o(.text+

Linking Problem

2008-02-07 Thread mearvk
Trying to link lip.C (LIP is long integer package) which contains calls to log(double) from math.h. This is test.C, my testing code: [START CODE] #include #include #include #include "lip.h" using namespace std; int main() { verylong a=0; verylong b=0; //zwrite(a);

Re: Linking Problem

2008-02-06 Thread Paul Pluzhnikov
mearvk <[EMAIL PROTECTED]> writes: > "g++ -c lip.C" gives me lip.o. > "g++ -c test.C" gives me test.o > "g++ -o out test.o lip.o -lm" should give me 'out' as an executable > but it doesn't, instead giving me: > > lip.o(.text+0xf88d): In function `zfread(_IO_FILE*, long**)': > : undefined reference

Re: Shared object linking problem

2005-11-20 Thread Ulrich Eckhardt
[nothing to do with GCC, dropping that from the list of NGs] [EMAIL PROTECTED] wrote: > Thus, I was thinking of using a shared object for that component. > However, in the example below, I haven't figured out a way to modify > commonClass.cpp (for example, the print() method) and be able to see >

Shared object linking problem

2005-11-20 Thread izhar . wallach
Hi, I'm trying to write an application which have a component that I like to modify without restarting it. Thus, I was thinking of using a shared object for that component. However, in the example below, I haven't figured out a way to modify commonClass.cpp (for example, the print() method) and be

Re: Linking Problem

2005-11-11 Thread Paul Pluzhnikov
"Paulo Matos" <[EMAIL PROTECTED]> writes: > Any ideas where I could find one prebuilt? Hmm, it appears that no distribution ever shipped with gcc-3.0.x, so the packaged version is hard to find. Found it here: http://rpm.pbone.net/index.php3/stat/4/idpl/517833/com/gcc-3.0.4-1.i386.rpm.html ftp://

Re: Linking Problem

2005-11-11 Thread Paulo Matos
Paul Pluzhnikov wrote: > "Paulo Matos" <[EMAIL PROTECTED]> writes: > > > It seems I was wrong. My build was OK initially, but for some reason > > building gcc in the same dir makes parse.h blank afterwards. Anyway, > > compiling gives the following error with 3.3.4 and 2.95: > > In file included f

Re: Linking Problem

2005-11-10 Thread Paul Pluzhnikov
"Paulo Matos" <[EMAIL PROTECTED]> writes: > It seems I was wrong. My build was OK initially, but for some reason > building gcc in the same dir makes parse.h blank afterwards. Anyway, > compiling gives the following error with 3.3.4 and 2.95: > In file included from > ../../../../gcc-3.0.4/libstdc

Re: Linking Problem

2005-11-10 Thread Paulo Matos
It seems I was wrong. My build was OK initially, but for some reason building gcc in the same dir makes parse.h blank afterwards. Anyway, compiling gives the following error with 3.3.4 and 2.95: In file included from ../../../../gcc-3.0.4/libstdc++-v3/src/locale.cc:557: /home/pocm/gcc-build/i686-pc

Re: Linking Problem

2005-11-10 Thread Paulo Matos
Interesting... I had a blank parse.h... Compiling again... :D Thanks for the tip! Paul Pluzhnikov wrote: > "Paulo Matos" <[EMAIL PROTECTED]> writes: > > > Well, I got gcc-3.0.4 and I tried to compile but a lot of errors have > > Please do not top-post and read this: > http://catb.org/~esr/jargon/

Re: Linking Problem

2005-11-10 Thread Paul Pluzhnikov
"Paulo Matos" <[EMAIL PROTECTED]> writes: > Well, I got gcc-3.0.4 and I tried to compile but a lot of errors have Please do not top-post and read this: http://catb.org/~esr/jargon/html/T/top-post.html > gcc -c -DIN_GCC-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototype

Re: Linking Problem

2005-11-10 Thread Paulo Matos
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 -

Re: Linking Problem

2005-11-09 Thread Paulo Matos
Paul Pluzhnikov escreveu: > [EMAIL PROTECTED] 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

Re: Linking Problem

2005-11-09 Thread Paul Pluzhnikov
[EMAIL PROTECTED] 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

Linking Problem

2005-11-09 Thread pocmatos
Hi all, 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 Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs Configured with: ../src/configure

Linking problem after reinstall of gcc 3.3.3

2005-07-11 Thread Martin Magnusson
I recently tried to install gcc 3.4.4 in parallel to the 3.3.3 installation I already had (under Cygwin). I built gcc 3.4.4 with --prefix=/usr/local and --program-suffix=-3.4.4 However, after "make install", building the project I'm working on with gcc 3.3.3 didn't work anymore. I'm getting nu