8 Feb 2011 11:28
Linking errors in readmsg & smtpsend
Hi
im new to this libaray trying to compile it in visual studio 2008 express the main libetpen i compiled without no problem
but im getting link errors with the 2 examples :
2>readmsg.c
2>Generating Code...
2>Compiling manifest to resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>Linking...
2>getopt_long.obj : error LNK2005: _opterr already defined in getopt.obj
2>getopt_long.obj : error LNK2005: _optind already defined in getopt.obj
2>readmsg.obj : error LNK2005: _opterr already defined in getopt.obj
2>readmsg.obj : error LNK2005: _optind already defined in getopt.obj
2>option-parser.obj : error LNK2019: unresolved external symbol __imp__feed_mailstorage_init referenced in function _init_storage
2>../Debug/readmsg.exe : fatal error LNK1120: 1 unresolved externals
and the second link error in the smtpsend example :
1>------ Build started: Project: smtpsend, Configuration: Debug Win32 ------
1>Linking...
1>getopt_long.obj : error LNK2005: _opterr already defined in getopt.obj
1>getopt_long.obj : error LNK2005: _optind already defined in getopt.obj
1>../Debug/smtpsend.exe : fatal error LNK1169: one or more multiply defined symbols found
what im doing wrong here ?
Thanks
im new to this libaray trying to compile it in visual studio 2008 express the main libetpen i compiled without no problem
but im getting link errors with the 2 examples :
2>readmsg.c
2>Generating Code...
2>Compiling manifest to resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>Linking...
2>getopt_long.obj : error LNK2005: _opterr already defined in getopt.obj
2>getopt_long.obj : error LNK2005: _optind already defined in getopt.obj
2>readmsg.obj : error LNK2005: _opterr already defined in getopt.obj
2>readmsg.obj : error LNK2005: _optind already defined in getopt.obj
2>option-parser.obj : error LNK2019: unresolved external symbol __imp__feed_mailstorage_init referenced in function _init_storage
2>../Debug/readmsg.exe : fatal error LNK1120: 1 unresolved externals
and the second link error in the smtpsend example :
1>------ Build started: Project: smtpsend, Configuration: Debug Win32 ------
1>Linking...
1>getopt_long.obj : error LNK2005: _opterr already defined in getopt.obj
1>getopt_long.obj : error LNK2005: _optind already defined in getopt.obj
1>../Debug/smtpsend.exe : fatal error LNK1169: one or more multiply defined symbols found
what im doing wrong here ?
Thanks
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ Libetpan-users mailing list Libetpan-users@... https://lists.sourceforge.net/lists/listinfo/libetpan-users
RSS Feed