cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Makefile in visual studio
Makefile in visual studio
Apr 3, 2009 at 5:21am UTC
dushyantkumar1
(8)
Hi,
I want to write some code which can be portable to linux as well as on visual studio using command prompt.
I tried doing as suggested in:
http://mrbook.org/blog/tutorials/make/
This is for gcc compiler and it seems that I may have to change two variables:
CC=??
CFLAGS=??
I have no idea what it should be for visual studio.
Also, from this post I think that I can use the autodefine micro to identify the OS:
http://www.cplusplus.com/forum/unices/3668/
How can I identify the various compiler and window os?
Thanks,
Dushyant
Last edited on
Apr 3, 2009 at 5:21am UTC
Apr 4, 2009 at 5:06am UTC
writetonsharma
(1461)
doing make on windows and linux is different, on linux there is make
and on windows there is nmake/gmake something like that which comes with ms vc++. so you need to create two different make files for both the platforms.
Topic archived. No new replies allowed.