Issue w/ Cross Compiler Project in Kepler... [message #1250052] |
Tue, 18 February 2014 22:38 |
Matthew DeClue Messages: 1 Registered: February 2014 |
Junior Member |
|
|
Greetings,
I am one year into a computer science degree and all around pretty new to IDEs and the GNU toolchain. I have been trying to setup a Cross Compiler project in Eclipse for a good while now, because I wish to make applications that can be ported to Windows and Mac as well an Linux.
After much effort, I finally managed to install the toolchain to the point where the associations in the file would not highlight as errored. More specifically, to test whether or not this configuration is fully working I have created a basic Hello World C++ template with the Cross Compiler selected (as opposed to Linux GCC).
The problem is that, while the associations finally seem to be working, I cannot for the life of me get any output to the console when running the program. I remember to build all, and when I hit run, it simply exits and nothing is printed to the screen.
If I hit the begun run button, I get the following:
/bin/bash: /home/mdeclue/workspace/Test/Debug/Test: cannot execute binary file
/bin/bash: /home/mdeclue/workspace/Test/Debug/Test: Success
I have exhaustively scoured the internet over the past week and the only information I can find regarding this issue does not seem to apply to me, as far as I can currently understand it. Many suppose that the issue has to do with mixing a 32-bit program with a 64-bit system, but I have done the research and run the commands in the terminal to verify that my linux OS is in fact 64-bit, my system is 64-bit, and my Eclipse Kepler is 64-bit.
I furthermore do not understand why it first says that it fails, and then says that it is successful. I can say this much: nothing is printed to the screen at all - whereas when beginning an identical Hello World template using instead the "Linux GCC" compiler, I have no trouble at all and the ouput prints as expected.
Any help would be greatly appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.01280 seconds