Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: pecenipicek on May 22, 2006, 08:32:31 am

Title: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 08:32:31 am
 :nervous:

well, i've decided to try and look my way around the code of my favourite game, but i cant find what exactly do i need to be able to code my own stuff and build it.

(okay, i gathered that getting the free version of visual studio is the best idea right now)

i'd like someone to give me a exact list of things i need to start out. i mean, which SDK's and such.


if this has been answered somewhere, sorry  :nervous:
Title: Re: umm, yeah, help anyone
Post by: karajorma on May 22, 2006, 08:50:37 am
It's a real pity you missed WMCs coder startup day a couple of weeks back seeing as that covered exactly the sort of thing you're asking.

I've not tried the free version of visual studio but all the SDKs you need (plus some useless ones like DX9) are already in CVS so when you check out the code you'll get them.

I would usually point people in the direction of the getting started with CVS section on the SCP site but I've found WinCVS to be such an utter pain in the arse that I really can't recommend it. I've moved over to Tortoise CVS (http://www.tortoisecvs.org/) and so far it's serving me well. Nonetheless you might find some of the information here (http://scp.indiegames.us/content.php?content.3) useful.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 08:55:20 am
thanks :)

i was looking exactly for the CVS getting started page, i forgot where i found it the first time :D


as for WinCVS, i share your pain in a way :p

i've had my dad freak out more than once cause it doesnt like him :p

i'll dl tortoise cvs cause i hate wincvs myself too.

well, happy coding to me i guess :p
Title: Re: umm, yeah, help anyone
Post by: Shade on May 22, 2006, 08:57:01 am
First order of business is getting the code from CVS. The SCP website has a Good Guide (http://scp.indiegames.us/e107_plugins/custompages/CVS%20-%20Getting%20Started.php) for that if you can stomach wincvs (I can :p).

Compiler: Visual C++ 2005 Express (http://msdn.microsoft.com/vstudio/express/visualc/default.aspx)
SDKs: DirectX SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=7ab978b5-5f1a-4f6a-88eb-fc646138beca&DisplayLang=en) (think this is optional now actually), Platform SDK for Windows XP SP2 (http://www.microsoft.com/downloads/details.aspx?FamilyID=e15438ac-60be-41bd-aa14-7f1e0f19ca0d&DisplayLang=en).

Install the compiler, then the SDKs. Then in VC++ Express, go to options->projects & solutions->directories and add the lib and include directories for the two SDKs. For directX make sure you pick x86 libs unless you run 64bit windows.

Next, open the MSVC6 project from wherever you checked out the CVS code to and convert it - Don't bother with the VC2005 solution as it isn't up to date (or at least wasn't when I tried this). After converting, go to the solution properties and set it to ignore libci.lib, and add dependancies for user32.lib, ole32.lib, gdi32.lib and advapi32.lib to whatever is there already.

Choose a configuration (release, debug, etc.), and try compiling.

You may also need to get the OpenAL SDK (http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45) and copy openal32.lib to this place in your code tree to compile: fs2_open\openal\libs\win32. Or just include the openAL SDK like you did the other two. This may have been fixed though, as I haven't checked out CVS in the last couple of days.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 09:29:11 am
kara, can you guide me on how to set up the CVS with tortoise cvs? i cant check out the file... :nervous:

Quote
In E:\My Documents: "E:\Program Files\TortoiseCVS\cvs.exe" "-q" "checkout" "-P" "fs2_open"
CVSROOT=:pserver;anonymous:[email protected]:/home/fs2source

cvs checkout: Bad CVSROOT: Specify semicolon separated keyword=value pairs
cvs [checkout aborted]: Bad CVSROOT.

Error, CVS operation failed

Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 09:35:11 am
okay, with a bit of fiddling i managed to get sorta access, but its asking me for the anonymous user pass... i tried anonymous, but aint working obviously...
Title: Re: umm, yeah, help anyone
Post by: karajorma on May 22, 2006, 10:04:23 am
What you should have as your CVSROOT is :pserver:[email protected]:/home/fs2source/cvsroot

You appear to be trying to access one directory higher than you should and as a result it's kicking you out since you shouldn't have access there.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 10:04:42 am
thanks, works :D :)


now on to downloading like... umm 1 gig of support files :p
Title: Re: umm, yeah, help anyone
Post by: Ferret on May 22, 2006, 01:14:48 pm
I've moved over to Tortoise CVS (http://www.tortoisecvs.org/) and so far it's serving me well.
I'ld also like to recommend Tortoise CVS. I have nothing but trouble with WinCVS.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 22, 2006, 02:34:03 pm
i'm using tortoise cvs, altough downloading 40-50 megs of CVS wasnt really fun :p

and now to dl the other two sdk's... gaah :p
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 23, 2006, 10:46:44 am
Next, open the MSVC6 project from wherever you checked out the CVS code to and convert it - Don't bother with the VC2005 solution as it isn't up to date (or at least wasn't when I tried this). After converting, go to the solution properties and set it to ignore libci.lib, and add dependancies for user32.lib, ole32.lib, gdi32.lib and advapi32.lib to whatever is there already.
where is the solution properties and where the hell can i add dependancies for those libs?

Title: Re: umm, yeah, help anyone
Post by: Backslash on May 24, 2006, 06:17:26 pm
(I'm finally used to WinCVS, but there was plenty of :mad: on the way.)

(Btw, if download size is a problem, try just the Platform SDK first... the DirectX SDK may not be necessary anymore.  Also, if you do a custom install and remove all the 'Sample code' you'll shave off quite a few MB.)

You might want to switch to Release configuration first.  (if you can't find the quick drop down, look at Build menu, Configuration Manager)

 * Right-click on the Freespace 2 project and choose Properties.  Go to Linker, inside it: Input.
 * the two fields in question are Ignore Specific Library and Additional Dependencies.

optional (speeds compiling up):

 * in Properties of the Freespace2 project, go to C/C++
 * inside Browse Information, change Enable Browse Information to None.
 * inside Code Generation, Enable Minimal Rebuild.
 * Do the above three steps the 'code' project as well.

Good luck.  Our numbers grow!  :D
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 30, 2006, 01:19:30 pm
 :doubt:  :mad: :hopping: :sigh: :( :nervous:
Code: [Select]
------ Build started: Project: code, Configuration: Release Win32 ------
Compiling...
irc.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
udpsocket.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/udpsocket.h(60) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
TCP_Socket.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
TCP_Client.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Client.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cmdline.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
stand_gui.cpp
..\..\code\network\stand_gui.cpp(394) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
psnet2.cpp
..\..\code\network\psnet2.cpp(164) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
psnet.cpp
..\..\code\network\psnet.cpp(158) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
multiutil.cpp
..\..\code\network\multiutil.cpp(377) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multiui.cpp
..\..\code\network\multiui.cpp(614) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multiteamselect.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multimsgs.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multilag.cpp
..\..\code\network\multilag.cpp(126) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_xfer.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_voice.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_update.cpp
e:\My Documents\fs2_open\code\inetfile/cftp.h(52) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_team.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_respawn.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pmsg.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
multi_ping.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pinfo.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pause.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_options.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_oo.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_observer.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_obj.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_kick.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_ingame.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_endgame.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_dogfight.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_data.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_campaign.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
fs2ox.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
exceptionhandler.cpp
..\..\code\exceptionhandler\exceptionhandler.cpp(94) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
inetgetfile.cpp
..\..\code\inetfile\inetgetfile.cpp(56) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
chttpget.cpp
..\..\code\inetfile\chttpget.cpp(129) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cftp.cpp
..\..\code\inetfile\cftp.cpp(54) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
weapons.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
emp.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
beam.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
codec1.cpp
..\..\code\vcodec\codec1.cpp(11) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
window.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
uimouse.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
uidraw.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
slider2.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
slider.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
scroll.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
radio.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
listbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
keytrap.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
inputbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
icon.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gadget.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
checkbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
button.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
stats.cpp
..\..\code\stats\stats.cpp(232) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
scoring.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
ogg.cpp
..\..\code\sound\ogg\ogg.cpp(21) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
sound.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
rtvoice.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ds3d.cpp
e:\My Documents\fs2_open\openal\include\al.h : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ds.cpp
..\..\code\sound\ds.cpp(465) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
audiostr-openal.cpp
..\..\code\sound\audiostr-openal.cpp(117) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
acm-openal.cpp
..\..\code\sound\acm-openal.cpp(37) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
radarsetup.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
radarorb.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
radar.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
popupdead.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
popup.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
playercontrol.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
managepilot.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
lua.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
sexp.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
osregistry.cpp
..\..\code\osapi\osregistry.cpp(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
osapi.cpp
..\..\code\osapi\osapi.cpp(228) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
objectsnd.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
object.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
collideshipweapon.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
modelread.cpp
..\..\code\model\modelread.cpp(1132) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
missiontraining.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionparse.cpp
..\..\code\mission\missionparse.cpp(1049) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
missionmessage.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionlog.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionhotkey.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
missiongoals.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
techmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
storybook.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
snazzyui.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
readyroom.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
playermenu.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
optionsmenumulti.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
optionsmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
mainhallmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
barracks.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
fix.cpp
..\..\code\math\fix.cpp(52) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
wmcgui.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
lab.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
timer.cpp
..\..\code\io\timer.cpp(133) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
swff_lib.cpp
..\..\code\io\swff_lib.cpp(36) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
mouse.cpp
..\..\code\io\mouse.cpp(194) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
keycontrol.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
key.cpp
..\..\code\io\key.cpp(164) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
joy_ff.cpp
e:\My Documents\fs2_open\code\io/sw_force.h(31) : fatal error C1083: Cannot open include file: 'winerror.h': No such file or directory
joy.cpp
..\..\code\io\joy.cpp(217) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
hudwingmanstatus.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudtargetbox.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudtarget.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudsquadmsg.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudshield.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudreticle.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudobserver.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudmessage.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudlock.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudescort.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudartillery.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hud.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
gropengltnl.cpp
..\..\code\graphics\gropengltnl.cpp(239) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropengltexture.cpp
..\..\code\graphics\gropengltexture.cpp(266) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
gropengllight.cpp
..\..\code\graphics\gropengllight.cpp(171) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropenglextension.cpp
..\..\code\graphics\gropenglextension.cpp(110) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropenglbmpman.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropengl.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
grd3dtexture.cpp
e:\my documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
GrD3DStateBlock.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3dsetup.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3drender.cpp
e:\my documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3dlight.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3dcalls.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3dbmpman.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3dbatch.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
grd3d.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
font.cpp
..\..\code\graphics\font.cpp(287) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2d.cpp
..\..\code\graphics\2d.cpp(776) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
windebug.cpp
..\..\code\globalincs\windebug.cpp(250) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
dx8show.cpp
..\..\code\directx\dx8show.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
timerbar.cpp
..\..\code\debugconsole\timerbar.cpp(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
dbugfile.cpp
..\..\code\debugconsole\dbugfile.cpp(5) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
debris.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
mveplayer.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
movie.cpp
..\..\code\cutscene\movie.cpp(61) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
controlsconfig.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
cfilesystem.cpp
..\..\code\cfile\cfilesystem.cpp(235) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfilelist.cpp
..\..\code\cfile\cfilelist.cpp(85) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfilearchive.cpp
..\..\code\cfile\cfilearchive.cpp(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfile.cpp
..\..\code\cfile\cfile.cpp(340) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
asteroid.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
aiturret.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
GrD3DParticle.cpp
e:\My Documents\fs2_open\dx8sdk\include\d3d8.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Release\Profile\ai.sbr': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
code - 152 error(s), 0 warning(s)
------ Build started: Project: liblua, Configuration: Release Win32 ------
Compiling...
loadlib.c
..\..\lua\loadlib.c(93) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
liblua - 1 error(s), 0 warning(s)
------ Skipped Build: Project: Fred2, Configuration: Release Win32 ------
Project not selected to build for this solution configuration
------ Build started: Project: Freespace2, Configuration: Release Win32 ------
Compiling...
freespace.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
Freespace2 - 1 error(s), 0 warning(s)
------ Skipped Build: Project: wxFRED2, Configuration: Release Win32 ------
Project not selected to build for this solution configuration
========== Build: 0 succeeded, 3 failed, 1 up-to-date, 2 skipped ==========


help?
Title: Re: umm, yeah, help anyone
Post by: karajorma on May 30, 2006, 02:32:46 pm
For some reason it's not finding your MSVC files in it's path.

Do a search for windows.h on the hard drive you installed VC to and see where you have the includes folder. Then go to Tools>>Options>>Directories and add the path to the ones that should already be there. You might need to add the MFC\Include folder too in order to compile FRED.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 30, 2006, 02:52:18 pm
its there, i've added the location in the dirs and manually located both windows.h and winsock.h, and neither is findable for some bizzare reason.
Title: Re: umm, yeah, help anyone
Post by: Backslash on May 30, 2006, 06:35:08 pm
oh, you may already have checked this, but just in case:  make sure in Tools>>Options>>Directories, you're adding the path to the Include section, not the Executables (which comes up by default)

And I think kara means Platform SDK but sounds like you got it.
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on May 31, 2006, 08:03:08 am
after following the instruction/tips in this topic and the sticky ones,I still have 5 error while compiling the source(latest,grabbed via wincvs 1.2 today)


1.
..\..\code\graphics\grd3dsetup.cpp(744) : error C2065: 'i' : undeclared identifier

2.
fatal error C1083: Cannot open source file: '..\..\code\graphics\GrD3DParticle.cpp': No such file or directory

3.
..\..\code\graphics\grd3dlight.cpp(223) : error C2065: 'i' : undeclared identifier

4.
fatal error C1083: Cannot open source file: '..\..\code\graphics\grd3dbatch.cpp': No such file or directory

5.
fatal error C1083: Cannot open include file: 'ddraw.h': No such file or directory

not sure about the 'undeclared identifier' ones(1. and 3.).
I think 2./4. means that the file grd3dbatch.cpp/grd3dparticle.cpp is missing,I tried to search for the missing files in fs_open folder/on cgi web repository,but no avail.
'5. error' is caused by the 'incomplete' directx sdk i guess,downloading full directx sdk at the moment.

thanks in advance.

edit:1. and 3. can be fixed by adding 'int' to the 'for loop' in those 2 file i think.
Title: Re: umm, yeah, help anyone
Post by: taylor on May 31, 2006, 08:21:47 am
edit:1. and 3. can be fixed by adding 'int' to the 'for loop' in those 2 file i think.
That's one way to fix it, a better way is just to declare i at the start of the function.  This is just one of those many stupid MSVC things which violates coding specs and that MS coders have gotten used to doing.

For 2 and 4, those files have been removed since they are obsolete.  Just remove them from the project file and you should be ok there.
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on May 31, 2006, 08:29:02 am
That's one way to fix it, a better way is just to declare i at the start of the function.  This is just one of those many stupid MSVC things which violates coding specs and that MS coders have gotten used to doing.

For 2 and 4, those files have been removed since they are obsolete.  Just remove them from the project file and you should be ok there.
thanks for the clarfication.I was wondering why it still returned that error after 'i' being declared as int in another 'for loop' in the same function,now I see what the problem is.  :)
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 31, 2006, 09:15:44 am
okay, i've removed the D3D stuff from the code completely, no errors there, but i still got the missing "windows.h" and "winsock.h" error...


Code: [Select]
------ Build started: Project: code, Configuration: Release Win32 ------
Performing Custom Build Step
Compilation successful!
Compilation successful!
Compiling...
irc.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
udpsocket.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/udpsocket.h(60) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
TCP_Socket.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
TCP_Client.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Client.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cmdline.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
stand_gui.cpp
..\..\code\network\stand_gui.cpp(394) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
psnet2.cpp
..\..\code\network\psnet2.cpp(164) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
psnet.cpp
..\..\code\network\psnet.cpp(158) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
multiutil.cpp
..\..\code\network\multiutil.cpp(377) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multiui.cpp
..\..\code\network\multiui.cpp(614) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multiteamselect.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multimsgs.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multilag.cpp
..\..\code\network\multilag.cpp(126) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_xfer.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_voice.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_update.cpp
e:\My Documents\fs2_open\code\inetfile/cftp.h(52) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_team.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_respawn.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pmsg.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
multi_ping.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pinfo.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_pause.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_options.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_oo.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_observer.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_obj.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_kick.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_endgame.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_dogfight.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_data.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_campaign.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
fs2ox.cpp
e:\My Documents\fs2_open\code\fs2open_pxo/TCP_Socket.h(81) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
exceptionhandler.cpp
..\..\code\exceptionhandler\exceptionhandler.cpp(94) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
inetgetfile.cpp
..\..\code\inetfile\inetgetfile.cpp(56) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
chttpget.cpp
..\..\code\inetfile\chttpget.cpp(129) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cftp.cpp
..\..\code\inetfile\cftp.cpp(54) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
weapons.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
emp.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Compiling...
beam.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
codec1.cpp
..\..\code\vcodec\codec1.cpp(11) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
window.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
uimouse.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
uidraw.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
slider2.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
slider.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
scroll.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
radio.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
listbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
keytrap.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
inputbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
icon.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gadget.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
checkbox.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
button.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
stats.cpp
..\..\code\stats\stats.cpp(232) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
scoring.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
ogg.cpp
..\..\code\sound\ogg\ogg.cpp(21) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
sound.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
rtvoice.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ds3d.cpp
e:\My Documents\fs2_open\openal\include\al.h : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ds.cpp
..\..\code\sound\ds.cpp(465) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
audiostr-openal.cpp
..\..\code\sound\audiostr-openal.cpp(117) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
acm-openal.cpp
..\..\code\sound\acm-openal.cpp(37) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
radarsetup.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
radarorb.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
radar.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
popupdead.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
popup.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
playercontrol.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
managepilot.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
lua.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
sexp.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
osregistry.cpp
..\..\code\osapi\osregistry.cpp(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
osapi.cpp
..\..\code\osapi\osapi.cpp(228) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
objectsnd.cpp
e:\My Documents\fs2_open\code\sound/ds.h(179) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
object.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
collideshipweapon.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
modelread.cpp
..\..\code\model\modelread.cpp(1132) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
missiontraining.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionparse.cpp
..\..\code\mission\missionparse.cpp(1049) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
missionmessage.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionlog.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
missionhotkey.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
missiongoals.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
techmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
storybook.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
snazzyui.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
readyroom.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
playermenu.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
optionsmenumulti.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
optionsmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
mainhallmenu.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
barracks.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
fix.cpp
..\..\code\math\fix.cpp(52) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
wmcgui.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
lab.cpp
e:\My Documents\fs2_open\code\io/mouse.h(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
timer.cpp
..\..\code\io\timer.cpp(133) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
swff_lib.cpp
..\..\code\io\swff_lib.cpp(36) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
mouse.cpp
..\..\code\io\mouse.cpp(194) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
keycontrol.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
key.cpp
..\..\code\io\key.cpp(164) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
joy_ff.cpp
e:\My Documents\fs2_open\code\io/sw_force.h(31) : fatal error C1083: Cannot open include file: 'winerror.h': No such file or directory
joy.cpp
..\..\code\io\joy.cpp(217) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
hudwingmanstatus.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudtargetbox.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudtarget.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudsquadmsg.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudshield.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudreticle.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudobserver.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudmessage.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudlock.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudescort.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hudartillery.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
hud.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
gropengltnl.cpp
..\..\code\graphics\gropengltnl.cpp(239) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropengltexture.cpp
..\..\code\graphics\gropengltexture.cpp(266) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropengllight.cpp
..\..\code\graphics\gropengllight.cpp(171) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
gropenglextension.cpp
..\..\code\graphics\gropenglextension.cpp(110) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropenglbmpman.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
gropengl.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
font.cpp
..\..\code\graphics\font.cpp(287) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2d.cpp
..\..\code\graphics\2d.cpp(776) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
windebug.cpp
..\..\code\globalincs\windebug.cpp(250) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
dx8show.cpp
..\..\code\directx\dx8show.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
timerbar.cpp
..\..\code\debugconsole\timerbar.cpp(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
dbugfile.cpp
..\..\code\debugconsole\dbugfile.cpp(5) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
debris.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
mveplayer.cpp
e:\My Documents\fs2_open\code\graphics/gropengl.h(159) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
movie.cpp
..\..\code\cutscene\movie.cpp(61) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
controlsconfig.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
cfilesystem.cpp
..\..\code\cfile\cfilesystem.cpp(235) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfilelist.cpp
..\..\code\cfile\cfilelist.cpp(85) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfilearchive.cpp
..\..\code\cfile\cfilearchive.cpp(112) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
cfile.cpp
..\..\code\cfile\cfile.cpp(340) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
asteroid.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
aiturret.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
multi_ingame.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Release\Profile\ai.sbr': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
code - 142 error(s), 0 warning(s)
------ Build started: Project: liblua, Configuration: Release Win32 ------
Compiling...
loadlib.c
..\..\lua\loadlib.c(93) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
liblua - 1 error(s), 0 warning(s)
------ Skipped Build: Project: Fred2, Configuration: Release Win32 ------
Project not selected to build for this solution configuration
------ Build started: Project: Freespace2, Configuration: Release Win32 ------
Compiling...
freespace.cpp
e:\My Documents\fs2_open\code\network/psnet2.h(92) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
Build log was saved at "file://e:\My Documents\fs2_open\projects\MSVC_6\Release\Profile\BuildLog.htm"
Freespace2 - 1 error(s), 0 warning(s)
------ Skipped Build: Project: wxFRED2, Configuration: Release Win32 ------
Project not selected to build for this solution configuration
========== Build: 0 succeeded, 3 failed, 1 up-to-date, 2 skipped ==========

included dirs.
(http://img330.imageshack.us/img330/3845/includedirs0zg.jpg)
Title: Re: umm, yeah, help anyone
Post by: karajorma on May 31, 2006, 09:50:34 am
And windows.h is definitely in Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include ? Cause it's the only include folder you've got and it does sound like one hell of an odd choice.

That's one way to fix it, a better way is just to declare i at the start of the function.  This is just one of those many stupid MSVC things which violates coding specs and that MS coders have gotten used to doing.

Of all the things that piss me off about programming for VC that one is probably the most annoying because it goes against the biggest rules of variable scoping (i.e that a variable should be declared immediately before it is used if possible and that a variable should have the minimum scope possible).

 Must be even worse for people who don't actually use VC and still have to do it to let the code compile for the rest of us though :D
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 31, 2006, 09:52:45 am
And windows.h is definitely in Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include ? Cause it's the only include folder you've got and it does sound like one hell of an odd choice.

yes. altough there was a weird problem while trying to find the file, the search didnt find it until i told it to look for hidden files and all, but both files arent hidden... odd stuff...
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on May 31, 2006, 11:14:05 am
@pecenipicek:
 
I think you are also using VC++ express 2005
Have you added platform SDK path to 'references' in project properties?

right-click on project name(e.g:'code') -> properties -> common properties -> references -> Add Path

I added the platform SDK include/lib paths to both 'project properties' and 'tools->option->project and solution -> VC++ Directories',now it doesnt give 'windows.h/winsock.h missing errors' anymore.
I am new to this VC++ express 2005 thing too,so I might be wrong.

edit:removed img because it's not working  :blah:

edit2:just got another 5 linker errors while compiling freespace2 project:(code.lib liblua.lib libjpg.lib were compiled successfully with some non-essential warnings)

Quote
code.lib(movie.obj) : error LNK2019: unresolved external symbol "void __cdecl mve_close(struct MVESTREAM *)" (?mve_close@@YAXPAUMVESTREAM@@@Z) referenced in function "bool __cdecl movie_play(char *)" (?movie_play@@YA_NPAD@Z)

code.lib(movie.obj) : error LNK2019: unresolved external symbol "void __cdecl mve_shutdown(void)" (?mve_shutdown@@YAXXZ) referenced in function "bool __cdecl movie_play(char *)" (?movie_play@@YA_NPAD@Z)

code.lib(movie.obj) : error LNK2019: unresolved external symbol "void __cdecl mve_play(struct MVESTREAM *)" (?mve_play@@YAXPAUMVESTREAM@@@Z) referenced in function "bool __cdecl movie_play(char *)" (?movie_play@@YA_NPAD@Z)

code.lib(movie.obj) : error LNK2019: unresolved external symbol "void __cdecl mve_init(struct MVESTREAM *)" (?mve_init@@YAXPAUMVESTREAM@@@Z) referenced in function "bool __cdecl movie_play(char *)" (?movie_play@@YA_NPAD@Z)

code.lib(movie.obj) : error LNK2019: unresolved external symbol "struct MVESTREAM * __cdecl mve_open(char *)" (?mve_open@@YAPAUMVESTREAM@@PAD@Z) referenced in function "bool __cdecl movie_play(char *)" (?movie_play@@YA_NPAD@Z)

Additional Dependencies:
kernel32.lib advapi32.lib user32.lib ole32.lib gdi32.lib Quartz.lib d3d8.lib d3dx8.lib DxErr8.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib vfw32.lib msacm32.lib comctl32.lib ogg_static.lib vorbis_static.lib vorbisfile_static.lib

Ignored libs:
libci.lib,libc.lib,libcd.lib,libcmt.lib
Title: Re: umm, yeah, help anyone
Post by: taylor on May 31, 2006, 01:01:04 pm
Add the following files to the project:
code/cutscene/decoder16.cpp
code/cutscene/mve_audio.cpp
code/cutscene/mvelib.cpp
code/cutscene/mvelib.h
code/cutscene/mveplayer.cpp

And also note that audio for MVEs will only work if the build is for OpenAL (set USE_OPENAL as a preproc define).  Also add ..\..\openal\include to your list of includes for the project, ..\..\openal\libs\win32 and ..\..\openal\libs\win64 to the lib directories, and openal32.lib to the libs to use.
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on May 31, 2006, 01:30:21 pm
thnx,compiling with OpenAl include path/lib path/missing project files added and defined USE_OPENAL in mve_audio.cpp.

edit:successfully compiled but it crashed with 'Debug Assertion Failed: vector line 756,expression:vector subscript out of range' error when I was trying to run it.

Quote
  Using PURE D3D Device
  Window in debugging mode... mouse clicking may cause problems!
  Alpha texture format = ARGB, 4:4:4:4
  Non-alpha texture format = ARGB, 1:5:5:5
  Max texture units: 2
  Max texture size: 2048x2048
  Can use compressed textures: YES
  Texture compression available: YES
... Direct3D init is complete!
Size of bitmap info = 705 KB
Size of bitmap extra info = 40 bytes
ANI cursorweb with size 24x24 (25.0% wasted)
GRAPHICS: Initializing default colors...
SCRIPTING: Beginning initialization sequence...
SCRIPTING: Beginning Lua initialization...
LUA: Opening LUA state...
LUA: Initializing base Lua libraries...

I dont know what exactly caused this problem/how to debug it,and it doesnt allow me to press any of the 3 buttons(Abort,Retry,Ignore) to 'press Retry to debug the application'.
Title: Re: umm, yeah, help anyone
Post by: taylor on May 31, 2006, 02:43:54 pm
edit:successfully compiled but it crashed with 'Debug Assertion Failed: vector line 756,expression:vector subscript out of range' error when I was trying to run it.
Did it give a line number or filename or anything?  Try running with OpenGL and see if it still happens.
Title: Re: umm, yeah, help anyone
Post by: pecenipicek on May 31, 2006, 04:43:03 pm
@pecenipicek:
 
I think you are also using VC++ express 2005
Have you added platform SDK path to 'references' in project properties?

right-click on project name(e.g:'code') -> properties -> common properties -> references -> Add Path

I added the platform SDK include/lib paths to both 'project properties' and 'tools->option->project and solution -> VC++ Directories',now it doesnt give 'windows.h/winsock.h missing errors' anymore.
I am new to this VC++ express 2005 thing too,so I might be wrong.

tried it and nope. when it gets to compiling the code its still saying the file aint there. but i managed to atleast compile libjpg :p :D

can anyone else help?
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on May 31, 2006, 09:31:19 pm
Did it give a line number or filename or anything?  Try running with OpenGL and see if it still happens.
In D3D mode it just points to the file Program Files/Visual Studio 8/vc/include/vector(without any extension),which gives the 'assertion failed:vector out of range' error.

In OpenGl mode it complaints about the outdated version of OpenGl(Current GL Version of 1.1 is less than the required version of 1.2.Switch video modes or update your drivers.)tried to update to the latest driver but the problem is still there.
Title: Re: umm, yeah, help anyone
Post by: taylor on May 31, 2006, 11:43:23 pm
In OpenGl mode it complaints about the outdated version of OpenGl(Current GL Version of 1.1 is less than the required version of 1.2.Switch video modes or update your drivers.)tried to update to the latest driver but the problem is still there.
What video card and driver version are you using now?
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on June 01, 2006, 12:05:44 am
In OpenGl mode it complaints about the outdated version of OpenGl(Current GL Version of 1.1 is less than the required version of 1.2.Switch video modes or update your drivers.)tried to update to the latest driver but the problem is still there.
What video card and driver version are you using now?
'ancient' Nvidia Geforce4 MX 440 and 84.21(latest official version),tried on 2 pc(1 'ancient'(celeron 1.3) and another one is newer(sempron 64 3000+)),the video cards on both pc are very old(MX ish) because I dont play 'modern so-called state-of-art graphics' game :D
Title: Re: umm, yeah, help anyone
Post by: taylor on June 01, 2006, 12:56:50 am
'ancient' Nvidia Geforce4 MX 440 and 84.21(latest official version),tried on 2 pc(1 'ancient'(celeron 1.3) and another one is newer(sempron 64 3000+)),the video cards on both pc are very old(MX ish) because I dont play 'modern so-called state-of-art graphics' game :D
Hmm, what version of Windows are you running?

That card should be fine with OpenGL, the version should be at least 1.5 with those drivers I believe.  The only thing I can think is that it's using software rendering for some reason.  I'll make a change to the OpenGL init code later tonight and maybe that will fix the problem for you (had an issue with that code before, even though it's set according to spec from MS).
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on June 01, 2006, 01:41:19 am
Hmm, what version of Windows are you running?

That card should be fine with OpenGL, the version should be at least 1.5 with those drivers I believe.  The only thing I can think is that it's using software rendering for some reason.  I'll make a change to the OpenGL init code later tonight and maybe that will fix the problem for you (had an issue with that code before, even though it's set according to spec from MS).
Thanks.

Im running Windows 2000 sp4.

It looks like "ver = (char *)glGetString(GL_VERSION);" gets the wrong string(its always return "1.1" with any version of driver it seems),the 2nd int decimal number 'minor' converted by "sscanf() with 'dot' as delimiter" is less than the defined REQUIRE_GL_MINOR_VERSION(2),hence the error.

I will try to comment out the check lines for now,but I doubt it will still 'trigger' the 'vector subscript out of range' error even if I could 'bypass' this check in OpenGL mode.

Title: Re: umm, yeah, help anyone
Post by: karajorma on June 01, 2006, 02:03:32 am
It's still doing that? I thought that was fixed donkey's years ago?
Title: Re: umm, yeah, help anyone
Post by: taylor on June 01, 2006, 02:28:17 am
It's still doing that? I thought that was fixed donkey's years ago?
It's not the y2k-type thing, if that's what you were thinking.


@DefeatedRemus:  Update to current CVS and try again.  May be fixed now.
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on June 01, 2006, 04:01:40 am
It's still doing that? I thought that was fixed donkey's years ago?
It's not the y2k-type thing, if that's what you were thinking.


@DefeatedRemus:  Update to current CVS and try again.  May be fixed now.
Thx,I just ran the compiled executable in openGL with 'opengl version check' commented,same 'vector subscript out of range' error except I can press the 'Retry' button to debug this time,the breakpoint points to line 3700 "gr_font_init(); // loads up all fonts" in freespace2.cpp.I dont know what that means though,since I am newbie at C++/debugging.
Title: Re: umm, yeah, help anyone
Post by: taylor on June 01, 2006, 04:32:08 am
same 'vector subscript out of range' error except I can press the 'Retry' button to debug this time,the breakpoint points to line 3700 "gr_font_init(); // loads up all fonts" in freespace2.cpp.I dont know what that means though,since I am newbie at C++/debugging.
Huh.  I would assume that it's the scripting system for some reason (Lua, specifically).  Probably something for WMCoolmon to answer since I don't think anyone else has had this problem and he knows that code the best.
Title: Re: umm, yeah, help anyone
Post by: DefeatedRemus on June 01, 2006, 04:45:59 am
Huh.  I would assume that it's the scripting system for some reason (Lua, specifically).  Probably something for WMCoolmon to answer since I don't think anyone else has had this problem and he knows that code the best.
ok just for your info:it gives another error related to vector if you ignore the 'vector subscript out of range one':
Quote
expression:("Standard C++ Libraries out of range",0)