From: Meir Y. <mei...@gm...> - 2011-02-08 10:28:50
|
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 |