Archived

This topic is now archived and is closed to further replies.

drozen22

Compiling Source Code

Recommended Posts

I am wondering who wants answer some questions for me related to .net framework sdk and dsw workspace files. Basicly I am trying to teach myself how to compile source code from windows, without actually owning a copy of expensive visual stuio 7 .net. I am using free .net framework sdk wich has the same compiler as vs7 .net. I am also using a Visual Basic Script called VCMake.vbs that will open and compile DSW Workspace files since i have Cl.exe from the .net framework sdk. ( see I am a trying to be a legitimate coder here and not a nasty software pirate. ;D ) So here is what happens i run the script and get 90 compile errors that say "Hey dude where are all your include files at?" (more or less) and I was smart enough (or knowlagable) to include all my lovely Windows SDK include files from PATH using the Environmental Varriables option under MY Computer/Propertys/Advanced tab. So basicly why dosent it find the include files..? I am basicly telling it where to go. Also I tested a simple Frame that i made with ASP.net Web Matrix that has only 1 include file in it and it too is unable to find the include file even when using simple Cl.exe (the VS7 .net compiler)

Share this post


Link to post
Share on other sites
quote:
Original post by drozen22
I am using free .net framework sdk wich has the same compiler as vs7 .net.

No it doesn''t. the SDK includes only the C# compiler, not the C++ or VB compilers.

As regards your problem, perhaps you should just pass in the include directories as options to cl.exe.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Sneftel - this has been brought up recently in another thread, and apparently it does include a C/C++ compiler.

drozen22 - you don''t want to use the PATH environment variable. I''m not sure of the specifics for that version of the compiler, but you''ll need to create INCLUDE and LIB environment variables (or something similar) and put the include and lib paths there. The SDK docs, or perhaps MSDN, should show you exactly what you need.

Share this post


Link to post
Share on other sites
quote:
Original post by drozen22
without actually owning a copy of
expensive visual stuio 7 .net.



You may not be aware of this, but an academic copy of VS.NET (if you''re a student), goes from between $100-150 US easily!

Share this post


Link to post
Share on other sites
I purchased a copy of visual studio.Net Standard Edition (which allows you to sell stuff you make with it) for £80 from amazon.co.uk, I''m not certain what that is in dollars, but if you convert it to dollars it will almost certainly cost you less than that. That''s about half the price of VC++ 6 Standard, and it does everything that it does (and is more standards compliant as well), and it''s only about the price of buying three games, so the next three times you''re going to buy a game, instead keep the moneys and buy Visual C++.net.

Share this post


Link to post
Share on other sites
quote:
Original post by Promit
It''s actually closer to 120, I think...

To be more precise 80 GBP corresponds to 133,16 USD (as of today by today`s exchange rates) which is the amount I paid for my own copy of Visual C++ 6.0 some time ago. So I wouldn`t say it`s THAT expensive compared to price of whole PC.


VladR
Avenger 3D game

Share this post


Link to post
Share on other sites