PDA

View Full Version : moving project to another laptop


Tinny
04-04-2007, 11:48 AM
Hey guys, I was moving my project to another laptop and I tried to compile but it wouldn't. It would say certain .obj files weren't found and then it would give an error at g_crash.c saying that it could not find windows.h. Do any of you know what could cause this problem and how to fix it?

DarthDie
04-04-2007, 12:09 PM
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
download that
after installation goto tools->options->projects and solutions->VC++ directorys->on the right goto include add [Drive]:/Program Files/Microsoft SDK/Include
do same for library but [microsoft SDK]/Lib
~Die

razorace
04-04-2007, 01:02 PM
Tinny, are you using the Express or Full version of VS2005?

Tinny
04-04-2007, 05:11 PM
Hey Razor, i'm using express. Darth, i'm about to implement what you just said to do.

JRHockney*
04-04-2007, 07:31 PM
LOL, hey razor, does this error sound familiar?! :p

I implemented it and I still get the same errors :(

I get this:

LINK : fatal error LNK1104: cannot open file 'odbc32.lib'

BSCMAKE: error BK1506 : cannot open file '..\Debug\JK2game\g_crash.sbr': No such file or directory

g:\program files\tortoisesvn\enhanced\source\game\g_crash.c(1 98) : fatal error C1083: Cannot open include file: 'windows.h': Permission denied

LINK : fatal error LNK1104: cannot open file 'odbc32.lib'

I guess when I originally deleted the win32 stuff, it refuses to come back even with a new platform. It won't even work if I re-add it to the solution! WTF!!!

razorace
04-04-2007, 08:35 PM
Permission denied..... WEIRD! Maybe it's set to read-only or something.

Maxstate
04-05-2007, 03:49 AM
I would start with getting all of those files mentioned into one folder then piece by piece checking their properties for read-only and checking if you're allowed to do anything with them at all in advanced --> users. Who knows, maybe the copypasta will help already!

Tinny
04-07-2007, 04:06 PM
LOL, hey razor, does this error sound familiar?! :p

I implemented it and I still get the same errors :(

I get this:

LINK : fatal error LNK1104: cannot open file 'odbc32.lib'

BSCMAKE: error BK1506 : cannot open file '..\Debug\JK2game\g_crash.sbr': No such file or directory

g:\program files\tortoisesvn\enhanced\source\game\g_crash.c(1 98) : fatal error C1083: Cannot open include file: 'windows.h': Permission denied

LINK : fatal error LNK1104: cannot open file 'odbc32.lib'

I guess when I originally deleted the win32 stuff, it refuses to come back even with a new platform. It won't even work if I re-add it to the solution! WTF!!!

Did you make sure to change the setting on the top right from executable to library and then include when you were in the menu to change the directories for the include and libraries?

Alright Darth, I did what you told to do and almost everything is fixed except i'm getting one error in g_crash.c:

g_crash.obj : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function _win32_backtrace

So when I comment out the line:

wsprintf(modname, "Unknown");

in win32_backtrace function in g_crash everything compiles ok. I figure the line is important though.

razorace
04-07-2007, 04:19 PM
what a tick, is the wsprintf in the g_crash? it's possible that we could change that to something else and avoid the problem entirely.

Tinny
04-07-2007, 05:00 PM
Hey yeah, but don't worry. I might have done something wrong by not following this:

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

correctly.

JRHockney*
04-07-2007, 05:26 PM
Hey yeah, but don't worry. I might have done something wrong by not following this:

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

correctly.

Both myself and Darthdie got the same error, so probably not... of course, I didn't read that link either. :p

DarthDie
04-07-2007, 05:35 PM
Yeah we both have had to comment out that dang line....gotta to ensi about what that is....Hey ensi what is that line??

Tinny
04-07-2007, 05:41 PM
Hmm, I followed the instructions closely this time and it would let me compile with the wsprintf uncommented.

JRHockney*
04-08-2007, 04:11 AM
Hmm, I followed the instructions closely this time and it would let me compile with the wsprintf uncommented.

hmm, I noticed that that tutorial is for R2. We have sp1 I think. I tried step 3 and step 4 so far with the appropriate changes for our version and I got the same error as before.Step 5 looks like just a test or something.

Tinny
04-08-2007, 08:46 PM
Oh, I think there's some parts to step 5 other than testing:

In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder %ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\103 3\".

In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:

// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;

JRHockney*
04-08-2007, 11:07 PM
Oh, I think there's some parts to step 5 other than testing:

In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder %ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\103 3\".

In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:

// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;

Well I just tried that. I got the same error :(

Tinny
04-08-2007, 11:11 PM
I'm sorry, i'm out of ideas now :(.