Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Lightbulb Windriver and Montavista

    Hi All,

    I have a montavista linux, where in i am compiling a c program
    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,

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    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
    Yeah, sounds like you need a cross compiling sandbox set up to do development for your target platforms.

  4. $spacer_open

Posting Permissions

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