Author Topic: Linker errors when building fs2_open  (Read 1322 times)

0 Members and 1 Guest are viewing this topic.

Offline ed

  • 21
Linker errors when building fs2_open
First of all, some introductions. I'm (hopefully) going to be helping out RazorsKiss on the Fringespace mod (http://fringespace.org/index.php), mainly doing features/gameplay coding - I might also have a look at the multi-player network code.

Anyways, I have been trying to get the code and build it so I can have a play around/look at the code. I'm using Visual Studio 2005 Pro.

  • I got the code of CVS (using these instructions http://www.hard-light.net/wiki/index.php/Getting_the_FreeSpace2:_SCP_Source_Code).
  • Opened the VS2005 .SLN file.
  • Built the solution.
  • Got these linker errors:

    Linking...
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_help_close(void)" (?multi_pxo_help_close@@YAXXZ) referenced in function "void __cdecl game_leave_state(int,int)" (?game_leave_state@@YAXHH@Z)
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_close(void)" (?multi_pxo_close@@YAXXZ) referenced in function "void __cdecl game_leave_state(int,int)" (?game_leave_state@@YAXHH@Z)
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_help_init(void)" (?multi_pxo_help_init@@YAXXZ) referenced in function "void __cdecl game_enter_state(int,int)" (?game_enter_state@@YAXHH@Z)
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_init(int)" (?multi_pxo_init@@YAXH@Z) referenced in function "void __cdecl game_enter_state(int,int)" (?game_enter_state@@YAXHH@Z)
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_help_do(void)" (?multi_pxo_help_do@@YAXXZ) referenced in function "void __cdecl game_do_state(int)" (?game_do_state@@YAXH@Z)
    freespace.obj : error LNK2019: unresolved external symbol "void __cdecl multi_pxo_do(void)" (?multi_pxo_do@@YAXXZ) referenced in function "void __cdecl game_do_state(int)" (?game_do_state@@YAXH@Z)
    D:\Freespace_scp\fs2_open\projects\MSVC_2005\Debug\fs2_open_3_6_9d.exe : fatal error LNK1120: 6 unresolved externals

I cant seem to find any function definitions for these functions in code - am I missing a library or something?

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Re: Linker errors when building fs2_open
add the following files to the 'code' project

  • network/chat_api.h
  • network/chat_api.cpp
  • network/multi_pxo.cpp
  • network/multi_pxo.h
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline ed

  • 21
Re: Linker errors when building fs2_open
Sweet, builds now! How come those files aren't part of the project?
« Last Edit: October 28, 2007, 04:13:35 pm by ed »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Linker errors when building fs2_open
Cause they were added only a week or two ago by a coder who (I presume) uses VC6 and no one had updated the 2005 project file.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Linker errors when building fs2_open
Yeah, I only use VC6 (under Wine, since I don't run Windows) so those are the only project files that I can update.