public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc cross compiling
@ 2011-08-13 18:13 rudy_b
  2011-08-13 19:14 ` Jonathan Wakely
  2011-08-14  3:19 ` Jeffrey Walton
  0 siblings, 2 replies; 3+ messages in thread
From: rudy_b @ 2011-08-13 18:13 UTC (permalink / raw)
  To: gcc-help


Hi, 
I would really appreciate some help.
I have a VERY simple C++ program, it is probably not even more than 30 lines
of code, and all it is doing it is mostly dealing with File IO's. I will be
honest, and the only library that I included is something called
boost::filesystem, but I did search and found out that the "boost" library
should run on all platforms. Granted that if this is true, is there a simple
way for me to cross platforms.
As I said, I don't have anything fancy, it is just simple c++ code, with
opening files, and reading files, and maybe renaming some files, and that is
about it. It is a command line C++ code, and doesn't involve any fancy
GUI's.
I developed this C++ code on a linux machine, with the following version
info:
Linux 2.6.18-164.el5 x86_64
And, I have access to most of gcc versions (4.3.5, 4.4.0, 4.5.1, 4.5.2,
4.6.0)

And, all I want to do is to bring this code over to my classic Mac:
Mac OS leopard 10.6

I tried to read more about this, and I came across the following link:
http://www.sandroid.org/imcross/

This looks very complicated, and just to do that it will take me days, to
get it going, and plus I would need a huge storage place on my disk to
install all these packages.

I am really hoping there should be a way to bring my simple code over from
Linux to Mac, without going through all these massive steps listed above. 

my c++ code, has only one function() and then the main().
My guess would be that there should be way simpler method of doing this,
since my  code is fairly simple.

I really appreciate some help.

thanks, 
RB

 
-- 
View this message in context: http://old.nabble.com/gcc-cross-compiling-tp32256848p32256848.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc cross compiling
  2011-08-13 18:13 gcc cross compiling rudy_b
@ 2011-08-13 19:14 ` Jonathan Wakely
  2011-08-14  3:19 ` Jeffrey Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Wakely @ 2011-08-13 19:14 UTC (permalink / raw)
  To: rudy_b; +Cc: gcc-help

On 13 August 2011 19:13, rudy_b wrote:
>
> Hi,
> I would really appreciate some help.
> I have a VERY simple C++ program, it is probably not even more than 30 lines
> of code, and all it is doing it is mostly dealing with File IO's. I will be
> honest, and the only library that I included is something called
> boost::filesystem, but I did search and found out that the "boost" library
> should run on all platforms. Granted that if this is true, is there a simple
> way for me to cross platforms.
> As I said, I don't have anything fancy, it is just simple c++ code, with
> opening files, and reading files, and maybe renaming some files, and that is
> about it. It is a command line C++ code, and doesn't involve any fancy
> GUI's.
> I developed this C++ code on a linux machine, with the following version
> info:
> Linux 2.6.18-164.el5 x86_64
> And, I have access to most of gcc versions (4.3.5, 4.4.0, 4.5.1, 4.5.2,
> 4.6.0)
>
> And, all I want to do is to bring this code over to my classic Mac:
> Mac OS leopard 10.6
>
> I tried to read more about this, and I came across the following link:
> http://www.sandroid.org/imcross/
>
> This looks very complicated, and just to do that it will take me days, to
> get it going, and plus I would need a huge storage place on my disk to
> install all these packages.
>
> I am really hoping there should be a way to bring my simple code over from
> Linux to Mac, without going through all these massive steps listed above.
>
> my c++ code, has only one function() and then the main().
> My guess would be that there should be way simpler method of doing this,
> since my  code is fairly simple.
>
> I really appreciate some help.

Just install a compiler on your Mac, then compile the code on the Mac.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc cross compiling
  2011-08-13 18:13 gcc cross compiling rudy_b
  2011-08-13 19:14 ` Jonathan Wakely
@ 2011-08-14  3:19 ` Jeffrey Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Walton @ 2011-08-14  3:19 UTC (permalink / raw)
  To: rudy_b; +Cc: gcc-help

On Sat, Aug 13, 2011 at 2:13 PM, rudy_b <rudykeram@yahoo.com> wrote:
> I would really appreciate some help.
> I have a VERY simple C++ program, it is probably not even more than 30 lines
> of code, and all it is doing it is mostly dealing with File IO's. I will be
> honest, and the only library that I included is something called
> boost::filesystem, but I did search and found out that the "boost" library
> should run on all platforms. Granted that if this is true, is there a simple
> way for me to cross platforms.
No need for Boost for simple programs since you probably have what you need.

For what its worth, I took a quick look at boost yesterday. I found
four problems with their threading and synchronization code in about
15 minutes. I don't believe Boost gets the same scrutiny from the same
caliber of folks that other projects, such as OpenSSL GDB, and GCC do.

> As I said, I don't have anything fancy, it is just simple c++ code, with
> opening files, and reading files, and maybe renaming some files, and that is
> about it. It is a command line C++ code, and doesn't involve any fancy
> GUI's.
> I developed this C++ code on a linux machine, with the following version
> info:
> Linux 2.6.18-164.el5 x86_64
> And, I have access to most of gcc versions (4.3.5, 4.4.0, 4.5.1, 4.5.2,
> 4.6.0)
>
> And, all I want to do is to bring this code over to my classic Mac:
> Mac OS leopard 10.6
Xcode. Its a free download at http://developer.apple.com/xcode/ (and
might already be installed). Best of luck with Xcode 4.x.

> I tried to read more about this, and I came across the following link:
> http://www.sandroid.org/imcross/
Looks like a lot of work to me. Stick with Xcode and a Terminal.

> This looks very complicated, and just to do that it will take me days, to
> get it going, and plus I would need a huge storage place on my disk to
> install all these packages.
>
> I am really hoping there should be a way to bring my simple code over from
> Linux to Mac, without going through all these massive steps listed above.
After installing Xcode (for the development files and libararies), you
can work from a Terminal.

> my c++ code, has only one function() and then the main().
> My guess would be that there should be way simpler method of doing this,
> since my  code is fairly simple.
Ditch Boost.

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-14  3:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-13 18:13 gcc cross compiling rudy_b
2011-08-13 19:14 ` Jonathan Wakely
2011-08-14  3:19 ` Jeffrey Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).