# VC 2005 Ekspress ERR

This topic is 4483 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, I'm trying to compile an open source game called Tremulous. I've ported it to VC2005E. Fixed all the error messages. Everything compiles, up to this point: fatal error LNK1120: 29 unresolved externals __imp__joyGetDevCapsW@12 __imp__midiInStart@4 __imp__timeEndPeriod@4 _send@16 _gethostbyname@4 socket@12 _WSAGetLastError@0 _inet_addr@4 and so on... I can see that these are Windows functions. I've searched my whole harddrive (DXSDK, PSDK) for these functions. Here's what I've found: 1. They are declared in MMSystem.h but not defined anywhere. 2. There are samples cpp files that use such functions (in the PSDK). Is it up to me to implement these functions? WTF? Is it that Tremulous is written in C, but there is only support for C++? (I doubt this one) THX in advance.

##### Share on other sites
You need to link to the import libraries for WinMM and winsock. You can do that either somewhere in Project Settings or directly in the code like so:

# pragma comment (lib, "winmm.lib")# pragma comment (lib, "ws2_32.lib")

##### Share on other sites
Compiled OK.
The exe opens a window with some invalid unicode characters in the caption, and does nothing.

Well, that sucks. Any suggestions?

##### Share on other sites
Examination reveals that I had to #undef UNICODE.
The game runs now, but the caption is Tremu, and there's some shit going on at the taskbar :]

1. 1
Rutin
40
2. 2
3. 3
4. 4
5. 5

• 18
• 20
• 13
• 14
• 9
• ### Forum Statistics

• Total Topics
633365
• Total Posts
3011523
• ### Who's Online (See full list)

There are no registered users currently online

×