LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-21-2011, 07:03 AM   #1
sfx81
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, 10:48 PM   #2
retxed
Member
 
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
 
  


Reply


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 05:49 AM
Cross compiling Mike Davies Linux - Kernel 4 04-04-2007 10:59 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 11:12 AM
cross compiling cerin Linux - Software 1 02-11-2006 10:47 PM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 10:29 PM


All times are GMT -5. The time now is 05:09 PM.

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