Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    8

    Lightbulb Windriver and Montavista


    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,

    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

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    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.

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Yeah, sounds like you need a cross compiling sandbox set up to do development for your target platforms.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •