[xsde-users] Build fails with socket references not resolved in XSDe v3.2.b1 but builds fine in V3.2

O'Laughlin, Terry Terry.O'Laughlin at ipc.com
Tue Nov 30 23:18:32 EST 2010


Boris,

I'm perplexed.   I get the following link errors when building with the beta version of 3.2b (whatever the latest version I've been using).
But I move the build directory to build under V3.2, no problem, builds fine.
This is prototype code which runs on Windows, using VS2008 command line (CL) compiler.

I'm scratching my head on this one.

This is a sample parser modified from the multi root example, which parses our messages xml vocabulary.  Works just fine parsing everything.  I was  just adding a function to read input data via a udp socket.

Thoughts?

Appreciate the help,

Cheers,

Terry O'



C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>
C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>
C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>
C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>nmake -f nmakefile

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl.exe -D_CRT_SECURE_NO_DEPRECATE /I..\..\..\..\libxsde /nologo /W3 /EHs /c /TP driver.cxx /Fodriver.obj
driver.cxx
        link.exe /nologo /OUT:driver.exe driver.obj messages.obj messages-pskel.obj messages-pimpl.obj ..\..\..\..\libxsde\xsde\xsde.lib
driver.obj : error LNK2019: unresolved external symbol __imp__htons at 4 referenced in function "int __cdecl receieve_from_socket(char *)" (?receieve_fro
m_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__gethostbyname at 4 referenced in function "int __cdecl receieve_from_socket(char *)" (?rece
ieve_from_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__WSACleanup at 0 referenced in function "int __cdecl receieve_from_socket(char *)" (?receiev
e_from_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError at 0 referenced in function "int __cdecl receieve_from_socket(char *)" (?re
ceieve_from_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__socket at 12 referenced in function "int __cdecl receieve_from_socket(char *)" (?receieve_f
rom_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__WSAStartup at 8 referenced in function "int __cdecl receieve_from_socket(char *)" (?receiev
e_from_socket@@YAHPAD at Z)
driver.obj : error LNK2019: unresolved external symbol __imp__sendto at 24 referenced in function "int __cdecl write_to_socket(class std::basic_ostringst
ream<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?write_to_socket@@YAHAAV?$basic_ostringstream at DU?$char_traits at D@std@@V?$allo
cator at D@2@@std@@@Z)
driver.exe : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' : return code '0x460'
Stop.

C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>
C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>
C:\xsde-3.2.0.b1_win32_vc9\examples\cxx\hybrid\MessageParsers>



Terry O'Laughlin
Sr. Software Engineer
IPC
TS Engineering Alliance Sustaining Dept.
777 Commerce Drive
Fairfield, CT 06825
phone: 203-339-7987
fax: 203-339-7809
www.ipc.com<http://www.ipc.com/>
Terry.O'Laughlin at ipc.com<mailto:first.last at ipc.com>



________________________________
DISCLAIMER: This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.

[cid:green-logo5d3d.jpg]Please consider the environment before printing this email.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: green-logo5d3d.jpg
Type: image/jpeg
Size: 1268 bytes
Desc: green-logo5d3d.jpg
Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20101130/43a5e0ee/green-logo5d3d.jpg


More information about the xsde-users mailing list