helps needs on GCC options
Timothy C Prince
tprince@myrealbox.com
Wed Mar 19 17:36:00 GMT 2003
-----Original Message-----
From: James Yang <JamesY@newvisionsystems.com>
To: gcc-bugs@gcc.gnu.org
Date: Wed, 19 Mar 2003 10:06:50 -0500
Subject: helps needs on GCC options
Hi,
I am using GNU gcc 2.9 on AIX 5.1 and tring to have my C code compiled. The
C source file will be compiled with third party software libraries made with
GNU 2.9 under AIX 5.1.
I first try to link the program with a static libary "libFPLibrary32.a".
Here is the command and options:
gcc -o test_store test_store.c -I$I_DIR -L$L_DIR -lFPLibrary32 -DPOSIX
$I_DIR and $L_DIR have been defined as the include dir and library dir.
I get errors this way which is saying that $L_DIR/libFPLibrary32.a is not a
COFF file.
I then tried to use the dynamic link library with the command and options:
gcc -o test_store test_store.c -I$I_DIR -L$L_DIR -lFPLibrary.so -Wl,-brtl
-DPOSIX
I get errors again saying that libFPLibrary.so not found. However, the
library is under $L_DIR.
Please help. Thanks.
__________________________________________
If you're not reporting a bug, you're more likely to get help on gcc-help, or on an AIX-specific list. If you are reporting a bug, please look up the specific guidelines.
When you say L_DIR is defined, if it's an environment variable pointing to a real directory, your syntax is wrong. However, I won't venture to make guesses which would depend on what shell you are running, nor what AIX-specific issues you're confused about.
Tim Prince
More information about the Gcc-bugs
mailing list