The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 12:38:02 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Compiling Error (windows 7 64-bit, Visual C++ Express 2008)
« previous next »
Pages: [1] Print
Author Topic: Compiling Error (windows 7 64-bit, Visual C++ Express 2008)  (Read 2308 times)
Nicholai
Zebranky food
*
Offline Offline

Gender: Male
Posts: 32



View Profile
Compiling Error (windows 7 64-bit, Visual C++ Express 2008)
« on: March 16, 2017, 09:08:50 am »

Hey all,

I'm hoping maybe Meep-Eep or one of the other wise individuals around here could help me with a UQM compiling/running issue.... (latest version of UQM)

- Running on Windows 7 64-Bit
- Compiling via Visual C++ Express 2008

I'm running into two different (but not concurrent) errors and it *seems* to be somehow related to DLLs and x86 vs. x64....  I *thought* I was doing everything in 64-bit, but now I'm not so sure.

Error #1  (occurs when I have 64-bit versions of SDL.dll and SDL_image.dll linked in my build/libraries)

- UQM won't compile.  I get 110 errors:

1>   Creating library ../../uqmdebug.lib and object ../../uqmdebug.exp
1>alarm.obj : error LNK2019: unresolved external symbol _SDL_GetTicks referenced in function _AlarmTime_nowMS
1>pure.obj : error LNK2001: unresolved external symbol _SDL_GetTicks
1>sdltime.obj : error LNK2001: unresolved external symbol _SDL_GetTicks
1>input.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>audiodrv_sdl.obj : error LNK2019: unresolved external symbol _SDL_GetError referenced in function _mixSDL_Init
1>canvas.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>opengl.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>pure.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>sdl_common.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>canvas.obj : error LNK2019: unresolved external symbol _SDL_UnlockSurface referenced in function _TFB_DrawCanvas_Line
1>opengl.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>pure.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>rotozoom.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>canvas.obj : error LNK2019: unresolved external symbol _SDL_LockSurface referenced in function _TFB_DrawCanvas_Line

........ you get the idea.  It's a crap load of the above.

Error #2 (occurs if I switch over to 32-bit versions of the SDL and SDL_image DLLs)

- UQM will compile just fine, but when I attempt to run the executable, I get an error that simply states: "The program was unable to start correctly (0xc000007b) click OK to close the application."  Some research indicates that this error is related to compatibility between 32 and 64 bit DLLs.

If anyone has any thoughts on why this may be occurring (and of course what I could do to fix it) I'd be hugely appreciative!  And obviously I can try to provide more information as needed.  I'm not even 100% sure my issue has much to do with the SDL files, but it's the only thing I'm able to figure right now.

Thanks!
Logged

~ Nicholai
Nicholai
Zebranky food
*
Offline Offline

Gender: Male
Posts: 32



View Profile
Re: Compiling Error (windows 7 64-bit, Visual C++ Express 2008)
« Reply #1 on: March 16, 2017, 09:32:07 am »

So, I actually resolved this on my own!  (Turns out I'm just not very good at, uh, computering.)  Sorry all!  I evidently don't have permissions to delete the topic.
Logged

~ Nicholai
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3872


We did. You did. Yes we can. No.


View Profile
Re: Compiling Error (windows 7 64-bit, Visual C++ Express 2008)
« Reply #2 on: March 16, 2017, 04:44:44 pm »

No need to delete. Glad you fixed it.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!