lfnetwork.com mark read register faq members calendar

Thread: Compiling on Visual C++ 2008 (VS08)
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 02-16-2009, 06:23 PM   #1
Cohsty243
Rookie
 
Cohsty243's Avatar
 
Join Date: Apr 2007
Posts: 67
Post Compiling on Visual C++ 2008 (VS08)

I found an article on the internet but i dont remember the URL. It helped with compiling on Visual C++ 2008.


To compile the Vanilla Source code for JKA in Visual C++ 2008 follow these steps:
1. Open up JKA_mp(SDK).sln, it will ask you if you want to convert, click yes.
2. Open up the file named "q_shared.h". Look for this:
Code:
float powf ( float x, int y );
3. add #undef powf above it so it looks like this:
Code:
#undef powf
float powf ( float x, int y );
4. Open up "q_math.c" and find this:
Code:
float powf ( float x, int y )
{
	float r = x;
	for ( y--; y>0; y-- )
		r = r * r;
	return r;
}
5. Add #undef powf above this one too.
Code:
#undef powf //VS2008 fix

float powf ( float x, int y )
{
	float r = x;
	for ( y--; y>0; y-- )
		r = r * r;
	return r;
}
we are doing this because Visual C++ 08 already has this function defined, so we can undefine this.

Next we need to remove all the win32 folders from our solution.
Like this:
http://i40.tinypic.com/2cmu328.jpg
Remove the win32 folder from JK2cgame, JK2game, and ui.

Don't forget to save the solution! lol.


Now when you compile you will get a lot of warnings, those can be ignored, i don't know how to get rid of those lol.

I hope this saves a lot of trouble for any new guys. this helped me a lot. I was very thankful when i found this info.
Cohsty243 is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Compiling on Visual C++ 2008 (VS08)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:38 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.