Thread: Bad System Call

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    215

    Bad System Call

    Im doing this program using Cygwin instead of Linux, and it uses the message queue. I tried a simple program and it worked on cygwin, but then i tried this program and it compiled fine, but when i tried to run it, i got this sent back to me:

    Bad System Call

    and the program didnt run. Heres my code to view what functions I call.

    http://sourcepost.sytes.net/sourcepo...ource_id=22148

    Thanks, I hope someone can help me with this.

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Talking No repiies yet... so time to start guessing!

    First, are you running "Program B"? It looks like A and B are supposed to be running simultaneously.

    Are these messaging functions supported by Cygwin? Maybe the Linux-specific stuff compiles OK, but won't actually run in Windows???

    If all else fails, maybe you'll have to start commenting-out lines 'till it executes. Or better yet, comment-out (almost) everything and un-comment a few lines at a time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. send() system call using _asm and interrupt
    By raghu2383 in forum C Programming
    Replies: 3
    Last Post: 09-25-2008, 02:38 AM
  2. system call variable
    By bradleyd in forum C Programming
    Replies: 5
    Last Post: 05-09-2007, 06:15 PM
  3. System() call issues
    By vishalbhingarka in forum C++ Programming
    Replies: 5
    Last Post: 10-12-2005, 09:55 AM
  4. system call
    By stautze in forum C Programming
    Replies: 2
    Last Post: 05-07-2002, 12:48 PM
  5. exec system call
    By weedus in forum Linux Programming
    Replies: 3
    Last Post: 03-07-2002, 09:34 PM