Hi, I am new to C++ and I am writing a code for SUSE Linux 10. I would like to compile my file "program.cpp" to "program.so" but I get the following error message:
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../lib64/crt1.o: In function `_start':
../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
What I did was:
g++ program.cpp -o program.so
Please can anyone help as I have no idea where the problem is. Many thanks for your time.
ysc32
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../lib64/crt1.o: In function `_start':
../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
What I did was:
g++ program.cpp -o program.so
Please can anyone help as I have no idea where the problem is. Many thanks for your time.
ysc32