ld linker error
i am new to this group and new to linux programming.
i am working on large project and facing problem in linking.
i try to create exe from shared library.
but it create warning and error as shown below..
/home/ankit/A5.opt/linuxport/shlib/libURPC.a(logon.o)(.data.rel.local+0x0): multiple definition of `pyrModuleName'
/home/ankit/A5.opt/linuxport/dev/ucpmain/src/main.o(.data.rel.local+0x4): first defined here
/home/ankit/A5.opt/linuxport/shlib/libURPC.a(logon.o)(.text+0x1860): In function `main':
: multiple definition of `main'
/home/ankit/A5.opt/linuxport/dev/ucpmain/src/main.o(.text+0x140): first defined here
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: Warning: size of symbol `main' changed from 1959 in /home/ankit/A5.opt/linuxport/dev/ucpmain/src/main.o to 354 in /home/ankit/A5.opt/linuxport/shlib/libURPC.a(logon.o)
/home/ankit/A5.opt/linuxport/shlib/libspclass.a(spec.o)(.text+0x7055): In function `specEdit(char*, char*, char*, void*, int, int, int, void (*)(void*, MsgObj), void*, MsgObj&)':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
plz give me any idea about these warnings and meaning of it.
suggestion to remove it most welcomed.
|