Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)
(resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #175349] Mon, 11 February 2008 05:00 Go to next message
Antares

 
Messages:12
Registered:June 2007
Location: Canada
EDIT: Solved the problem. Seemed that it would only look at the new core express properties file after a shut down/restart, not even a program restart/reboot would do it. Everything builds 100% fine now.
---------------------


Hey,

I've been out of programming for a bit, C/C++ moreso. I have no problems in creating my own programs, but working with the development environment is a relearning experience. Anyway..

Rolled back from Vista to XP Pro, to get up and running quickly I got VS2005 Express Edition so I could ensure I'd have project files already in its format and wouldn't have to worry about problems after conversion. Installed the Platform SDK and registered it, and the proper directories are included in the right places (/include, /include/mfc, /bin, /lib all under their respective categories) to stop the problems finding Windows.h and afxres.h. Now when I try to build the project, there are monstrous linkage errors:

11>Compiling resources...
11>Linking...
11>laptop_2005express.lib(IMP Personality Quiz.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>console_2005express.lib(Console.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>laptop_2005express.lib(laptop.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>laptop_2005express.lib(personnel.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>laptop_2005express.lib(IMP Begin Screen.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>laptop_2005express.lib(IMP HomePage.obj) : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
11>\ja2_rel_1202.exe : fatal error LNK1120: 109 unresolved externals
11>Build log was saved at "file://c:\Program Files\Jagged Alliance 2 Gold\JA2 Source\Release\BuildLog.htm"
11>ja2_2005Express - 163 error(s), 408 warning(s)


I omitted some of the linkage errors, but suffice it to say that every static library that references basic libraries like user32, etc, that are supposedly included through Windows.h, causes an error. I tried manually applying dependencies for the project on these libraries with no success. What kind of stupid error(s) am I making? I searched around for problems like this, but others seem to have no problem once they get past the SDK part..

[Updated on: Mon, 11 February 2008 07:08] by Moderator

Re: (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #175356] Mon, 11 February 2008 09:22 Go to previous messageGo to next message
afp

 
Messages:77
Registered:November 2007
Man, there are two solution files, ja2 and ja2_express. Use the second, these errors are fixed.
Re: (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #175358] Mon, 11 February 2008 09:42 Go to previous messageGo to next message
Antares

 
Messages:12
Registered:June 2007
Location: Canada
I was always using the ja2_2005express solution. When I edited the corewin_express properties file to include user32.lib, gdi32.lib, etc. under additional dependencies for the linker, everything started working fine - I thought I could just edit the dependencies for the solution, or the individual projects, to include those libraries, but that didn't work (or I did it wrong).

[Updated on: Mon, 11 February 2008 09:49] by Moderator

Re: (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #175362] Mon, 11 February 2008 11:45 Go to previous messageGo to next message
Ar1z

 
Messages:33
Registered:January 2008
Location: Greece

I sent you an email with the correct procedure....
Re: (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #175371] Mon, 11 February 2008 12:55 Go to previous messageGo to next message
Antares

 
Messages:12
Registered:June 2007
Location: Canada
Thanks both of you for your replies. I have a tendency to post something, and five minutes later, figure out the answer.. so for me, posting is half a cry for help, and half to force the forehead-slapping moment where I figure out the problem just after I post my issue.
Re: (resolved) Problems compiling source with VS2005 (Platform SDK installed including /mfc)[message #186293] Sun, 25 May 2008 22:42 Go to previous message
firefly28

 
Messages:55
Registered:May 2008
Hi could someone send me a mail for the correct procedure? if possible because Ive edited corewin express and alot of things but the svn Im using well although everything compiles(With linking warnings see other thread) and an exe is generated, the game now starts loads the logo with 0 sound and then bunks out, I have been pretty thoroughly through the forums and cant find an answer, what I have noticed in various files is that the latest SVN is set to german by default and certain things seem to be set to russian. I really need some info as to how to get the current SVN working. Please check my other posts, I even installed everything on 2005 Express on xp and I still get the same thing, if I was even getting proper error its would be fine but I just get a few warnings as in my other post. Could someone please check the latest SVN if it works please provide me a link, I really want to get into the code but have been finding it hard because the information isnt in one place and some is dated. (I am actually a software developer of small apps and its hard for someone like myself to start getting into the modding scene here when a clear listing of settings isnt anywhere - please sort this if you folks at all care about getting more people interested in modding(Who havent been here from the start and have had the luxury of non dated discussions relevant to current builds)

my mail is firefly28@hotmail.co.uk

Also some threads Ive noticed people saying they have solutions and not posting what the solution is?

[Updated on: Sun, 25 May 2008 22:43] by Moderator

Previous Topic: Ive built the source code 1.13, what now?+ fmod.dll missing when start debug to run
Next Topic: Console.rc / undefined keyword IDC_STATIC
Goto Forum:
  


Current Time: Tue Jul 25 23:53:01 EEST 2017

Total time taken to generate the page: 0.01705 seconds