Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-21-2011, 08:03 AM   #1
LQ Newbie
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Cross Plat form compiling

Hi all. A quick question regarding cross platform programming.
I developed a test program(my first under linux) some thing like

g++ -I$(BOOST_INCLUDE) -L$(BOOST_LIBS) threading.cpp -lpthread -lboostThread -lOtherLib -o threadingTest.out

This thing works in GCC4.5, but to compile it under windows visual studio 2008, do I have to create a new project file and then include all libs?

In short, is there any IDE or utility, where I just compile it either on linux or windows without going and modifying project options again and again ?

Any help will be appreciated
Old 02-21-2011, 11:48 PM   #2
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Rep: Reputation: 9
Can try MinGW (Minimalist GNU for Windows) for Cross Compiling.

Hope it helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 06:49 AM
Cross compiling Mike Davies Linux - Kernel 4 04-04-2007 11:59 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 12:12 PM
cross compiling cerin Linux - Software 1 02-11-2006 11:47 PM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 11:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration