Sounds a bit like something I was trying to do but failed. Once I thought about it I realised it was not possible - at least with the GCC I was using.
I was trying to compile the latest version of Redhat's Insight GUI for the GDB ( GNU Debugger).
It wouldn't compile under CYGWIN so I tried to do it in my LINUX box and it worked fine. As soon as I moved the compiled code to my Windows box it failed to run.
All software seems to refer to the underlying operating system at some point - even if it is just to know where to start the program from once it is called.
Anyway, I have tried to cross compile the Insight GUI in my Linux system and it is not supported. This leads me to believe that it is not so easy to cross compile code for different systems. I am 100% sure that Dev-C++ as-is does not provide this support.
BlakJak :]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I read once that it could actually be possible, but that, for some reason, nobody ever really tried it :)
I think I once found a compiler package that was said to produce Linux code on a windows platform, but I lost the adress and I never tried it myself...
Bye!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Just 'found' dev-cpp. great tool(hate visual-studio)
Does there exist a prebuild version of gcc 2.95.3, that will work with dev-cpp and produce Linux-native code ?????
regards
ole@danelec.dk
So what your asking for is a gcc compiler that runs on windows and produces output for linux . And too, why would you want to use the older 2.95.x.
N@N!
Sounds a bit like something I was trying to do but failed. Once I thought about it I realised it was not possible - at least with the GCC I was using.
I was trying to compile the latest version of Redhat's Insight GUI for the GDB ( GNU Debugger).
It wouldn't compile under CYGWIN so I tried to do it in my LINUX box and it worked fine. As soon as I moved the compiled code to my Windows box it failed to run.
All software seems to refer to the underlying operating system at some point - even if it is just to know where to start the program from once it is called.
Anyway, I have tried to cross compile the Insight GUI in my Linux system and it is not supported. This leads me to believe that it is not so easy to cross compile code for different systems. I am 100% sure that Dev-C++ as-is does not provide this support.
BlakJak :]
there is a dokument in the web
www.bloodshed.net/dev/SetDevCPPArm.pdf
Title: setting up Dev-c++ with the arm gcc cross-compiler
may be that's your'e looking for.
Greets
Patrick
Well, I read once that it could actually be possible, but that, for some reason, nobody ever really tried it :)
I think I once found a compiler package that was said to produce Linux code on a windows platform, but I lost the adress and I never tried it myself...
Bye!
Since Dev-CPP uses MinGW as its underlying compiler, take a look at the FAQ on setting up MinGW for cross-compilation.
http://www.mingw.org/mingwfaq.shtml#faq-cross
Don't know if this will help, but good luck.
Matt