Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Returning Struct from a function Pin
Aescleal24-Oct-13 10:15
Aescleal24-Oct-13 10:15 
GeneralRe: Returning Struct from a function Pin
Don Guy24-Oct-13 12:22
Don Guy24-Oct-13 12:22 
AnswerRe: Returning Struct from a function Pin
Erudite_Eric24-Oct-13 11:16
Erudite_Eric24-Oct-13 11:16 
GeneralRe: Returning Struct from a function Pin
Aescleal24-Oct-13 11:22
Aescleal24-Oct-13 11:22 
GeneralRe: Returning Struct from a function Pin
Erudite_Eric1-Nov-13 3:39
Erudite_Eric1-Nov-13 3:39 
QuestionEcc implementation in hardware with c++ Pin
Member 1035328123-Oct-13 8:09
Member 1035328123-Oct-13 8:09 
AnswerRe: Ecc implementation in hardware with c++ Pin
Richard MacCutchan23-Oct-13 21:25
mveRichard MacCutchan23-Oct-13 21:25 
QuestionError: "Ilegal instruction" when running Hello world Pin
Member 1034193323-Oct-13 6:28
Member 1034193323-Oct-13 6:28 
Hi all,
I'm a newbie in Linux programming. I compile the "Hello world program" by means of gcc compiler in a Centos 6 host computer, with kernel 2.6.32. The command line used is gcc -static hello.c -ohello. Previously I have installed the GNUlibc (ver 2.12) in this computer.
The compile process is ok, and runs ok in the host computer (Pentium 4). When I copy the program to an embedded cpu with AMD GEODE LX800 processor and kernel 2.6.12, the running result is "error: illegal instruction"

I checked compile with different parameters in gcc command line: -mpc64, -m32, -march=i386, -march=geode with no results with any of them (compile is ok but running error "illegal instrucion")
I know a cross compiling is neccesary but don´t know the correct parameters to gcc to use

The code is as simple as this
main()
{
printf("Hello world\n");
}
QuestionWhat software are you using for learning programing ? Pin
lainsherry23-Oct-13 4:25
lainsherry23-Oct-13 4:25 
AnswerRe: What software are you using for learning programing ? Pin
Member 1035507523-Oct-13 4:29
Member 1035507523-Oct-13 4:29 
AnswerRe: What software are you using for learning programing ? Pin
Richard MacCutchan23-Oct-13 5:51
mveRichard MacCutchan23-Oct-13 5:51 
GeneralRe: What software are you using for learning programing ? Pin
lainsherry23-Oct-13 7:15
lainsherry23-Oct-13 7:15 
AnswerRe: What software are you using for learning programing ? Pin
Thong LeTrung23-Oct-13 6:06
Thong LeTrung23-Oct-13 6:06 
GeneralRe: What software are you using for learning programing ? Pin
lainsherry23-Oct-13 7:16
lainsherry23-Oct-13 7:16 
AnswerRe: What software are you using for learning programing ? Pin
Captain Price23-Oct-13 6:35
professionalCaptain Price23-Oct-13 6:35 
GeneralRe: What software are you using for learning programing ? Pin
lainsherry23-Oct-13 7:18
lainsherry23-Oct-13 7:18 
GeneralRe: What software are you using for learning programing ? Pin
Captain Price23-Oct-13 7:42
professionalCaptain Price23-Oct-13 7:42 
GeneralRe: What software are you using for learning programing ? Pin
Richard MacCutchan23-Oct-13 8:42
mveRichard MacCutchan23-Oct-13 8:42 
AnswerRe: What software are you using for learning programing ? Pin
Aescleal23-Oct-13 11:11
Aescleal23-Oct-13 11:11 
AnswerRe: What software are you using for learning programing ? Pin
Erudite_Eric23-Oct-13 12:00
Erudite_Eric23-Oct-13 12:00 
AnswerRe: What software are you using for learning programing ? Pin
pasztorpisti23-Oct-13 21:23
pasztorpisti23-Oct-13 21:23 
AnswerRe: What software are you using for learning programing ? Pin
enhzflep24-Oct-13 4:14
enhzflep24-Oct-13 4:14 
AnswerRe: What software are you using for learning programing ? Pin
rashin ghodratzade27-Oct-13 22:14
rashin ghodratzade27-Oct-13 22:14 
QuestionCustom QSlider without handler, rounded corner lost when values next to MIN or MAX Pin
Diego Donate23-Oct-13 1:38
Diego Donate23-Oct-13 1:38 
QuestionRe: Custom QSlider without handler, rounded corner lost when values next to MIN or MAX Pin
Richard MacCutchan23-Oct-13 3:23
mveRichard MacCutchan23-Oct-13 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.