Problem Compiling CVS in Windows [Solved]

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
iulianov
Star Pilot
Star Pilot
Posts: 6
Joined: Tue Mar 10, 2009 3:16 am

Problem Compiling CVS in Windows [Solved]

Post by iulianov »

I have VisualStudio 2008 and I am getting the following linker errors when compiling the vssetup project:

Code: Select all

1>------ Build started: Project: vssetup, Configuration: Release Win32 ------
1>Compiling...
1>setup.cpp
1>file.cpp
1>display_gtk.cpp
1>central.cpp
1>Generating Code...
1>Linking...
central.obj : error LNK2019: unresolved external symbol _NewString referenced in function "void __cdecl SetGroup(char *,char *)" (?SetGroup@@YAXPAD0@Z)
1>file.obj : error LNK2001: unresolved external symbol _NewString
1>file.obj : error LNK2019: unresolved external symbol _next_parm referenced in function "void __cdecl LoadConfig(void)" (?LoadConfig@@YAXXZ)
1>file.obj : error LNK2019: unresolved external symbol _chomp referenced in function "void __cdecl LoadConfig(void)" (?LoadConfig@@YAXXZ)
1>file.obj : error LNK2019: unresolved external symbol _xml_chomp_comment referenced in function "void __cdecl Modconfig(int,char *,char *)" (?Modconfig@@YAXHPAD0@Z)
1>file.obj : error LNK2019: unresolved external symbol _xml_pre_chomp_comment referenced in function "void __cdecl Modconfig(int,char *,char *)" (?Modconfig@@YAXHPAD0@Z)
1>..\..\data4.x\bin\setup.exe : fatal error LNK1120: 5 unresolved externals
What is weird is that these functions do exist in central.cpp and general.cpp and that these files are being compiled.
Is there some VC++ setting that I am missing that is preventing it from seeing these functions?

Edit:
Well, I should have done this before I posted. I did a clean and then another build and it worked. Must have been some leftover files that VC didn't want to rebuild.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Problem Compiling CVS in Windows [Solved]

Post by loki1950 »

Always good practice to run clean in your build directory unless you are using cmake which creates it's on temporary ones for the build leaving your repo or source directory clean BTW the cmake scripts have been updated to include vssetup and vegaserver so it might just work windows side :wink:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Post Reply