Results 1 to 3 of 3
Hi All,
I have a montavista linux, where in i am compiling a c program
Code:
#include<stdio>
int main()
{
printf("I am here");
return 0;
}
and compiled with gcc,
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-22-2011 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 8
Windriver and Montavista
Hi All,
I have a montavista linux, where in i am compiling a c program
and compiled with gcc,Code:#include<stdio> int main() { printf("I am here"); return 0; }
this program works fine in montavista,
but the same when i try to run on WINDRIVER AND CENTOS LINUX it gives segmentation fault
Please help,
why is this simple program is not executing on other version of linux...
Thanks in advance,
Veda
- 11-22-2011 #2
Maybe because it misses libraries on centos and windriver?
Did you build a static binary or a dynamically linked one?
Also, the cpu architecture may be different.You must always face the curtain with a bow.
- 11-22-2011 #3Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,680
Yeah, sounds like you need a cross compiling sandbox set up to do development for your target platforms.


Reply With Quote
