Page 1 of 1
Moving to VC++ 8?
Posted: Tue May 15, 2007 11:14 am
by sevobal
Hi,
I'm actually developing my system in C using djgpp. But it would be better for me to switch to c++ and i like the VC++. So is it possible to do this? I mean rewritting the code in c++ is no problem, but how must I setup VC++ to build a *.bin file from different *.obj files? Is this possible?
Re: Moving to VC++ 8?
Posted: Tue May 15, 2007 11:32 am
by Brynet-Inc
sevobal wrote:Hi,
I'm actually developing my system in C using djgpp. But it would be better for me to switch to c++ and i like the VC++. So is it possible to do this? I mean rewritting the code in c++ is no problem, but how must I setup VC++ to build a *.bin file from different *.obj files? Is this possible?
Err.. Why switch from GCC to VC++? That's kinda sad.. Why not just use the g++ package for "djgpp"?
(
Why are you using the DOS port of GCC btw...?)
Posted: Tue May 15, 2007 11:34 am
by sevobal
I like to switch to VC++ 8, because all my apps written in MS VC++ or MS C# and I like the IDE of Visual Studio, so it would be better for me to use VC++ when switching to c++
Posted: Tue May 15, 2007 1:55 pm
by mathematician
One of the drawbacks of VC for operating system development is that it can only produce PE format files. Which is fine for turning out the Windows apps it is primarily intended for. (Or even the executable and DLL files of Windows itself. No flat binaries though.)
Posted: Tue May 15, 2007 2:11 pm
by jnc100
You can use the VC++ ide if you like, and ask it to use an external build system like cygwin to actually do the compiling.
Regards,
John.
Posted: Tue May 15, 2007 11:17 pm
by sevobal
jnc100 wrote:You can use the VC++ ide if you like, and ask it to use an external build system like cygwin to actually do the compiling.
Regards,
John.
That would be cool, so where can I change the compiler settings from ms to cygwin?
Posted: Wed May 16, 2007 1:04 am
by Gamlor
You can start a new "Makefile Project". Then you can specifie a script to execute on the build, clean, rebuild etc.
For example if you're using a makefile/gcc/cygwin you can just call "make build" in the projectsettings.
Well, maybe there is a better way, but this works. (I'm doing it this way atm)
Posted: Wed May 16, 2007 10:27 am
by Tyler
sevobal wrote:jnc100 wrote:You can use the VC++ ide if you like, and ask it to use an external build system like cygwin to actually do the compiling.
Regards,
John.
That would be cool, so where can I change the compiler settings from ms to cygwin?
I havent done this for the latest editions... but if you download the quake source, i know that they have always used Visual Studio but backended it, and the latest source code will probably be a good example of how to change most of the settings.