Unsolved
This post is more than 5 years old
1 Message
0
730
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?
Thanx
mmraz
8 Posts
0
December 24th, 2014 09:00
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.