Troubles running and compiling helloworld.c on AT91SAM9260 EVAL
Can anyone that has successfully compiled and ran a helloworld.c for the mentioned target provide the correct compile options or anyone having some insight of suggestions on this.
I used several variations but settled on the following without errors but it did not run. Quote:
Quote:
Quote:
Quote:
|
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
dynamic vs Static Linking
Ok so here is an update. My target uses a debian file system and it has gcc. I can compile and run hello world. Checking the file type us
I get the following: a.out: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not st ripped Showing that it is dynamically linked. I used numerous scripts that creates a cross compiler on my desktop but after compiling all results are static and will not run on my target. I have reviewed, read and tried various compile switches but no good results. In fact my impression is that it should be by default producing a dynamic linked file. So now my question is does anyone have any suggestions or advice? Additionally, there are several books that may help a gnu novice like myself. Would anyone care to recommend one? I am considering: a) The Definitive Guide to GCC. b) Using the Gnu Compiler Collection c) any other that may be helpful |
All times are GMT -5. The time now is 11:24 AM. |