john wantland
1 Copper

gcc parameters for linking Centera SDK

I've installed the Centera SDK v3.3 on a rhel v5.10 64 bit server.  gcc is v4.1

I used the Centera SDK release notes to create the LD_LIBRARY_PATH and CENTERA_LIB_PATH environment variables and export.

I executed the gcc -DPOSIX -I /usr/local/Centera_SDK/include -L /usr/local/Centera_SDK/lib/64 -l FPLibrary

the command fails with the following:

/usr/lib/gcc/x86_64-redhat-Linux/4.1.2/../../../../lib64/crt1.o: In Function \_start':

(.text+0x20): undefined reference to 'main'

collect2: ld returned 1 exit status.

Am I using the correct version &/or the correct syntax for linking?


0 Kudos
1 Reply
1 Copper

Re: gcc parameters for linking Centera SDK

If you showed your entire gcc command line in your post, your problem is that you didn't include any ".c" or ".o" files on the command line.  As a result, you didn't give the gcc command a file that contains a "main" function, which gcc needs to identify the start a program.

0 Kudos