Thread: Clarification on compile time error

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    119

    Clarification on compile time error

    I have a dual boot system which runs linux. I dumped all of my C/C++ code on their and did some coding and tested my program. Everything compiled and ran. Transferred it over to Windows, made some more changes and wasn't able to compile. The only error I recieved was for one file, which I didn't even touch at all since I got it. It's a generic main program for testing our code. The error message was something like "i386 architecture isn't compatible with the i386 x64's output". The program still compiled but produced a segmentation fault. I got this error when trying to execute my code on my school's server. After I replaced the main program file with the one from the website (which was identical because I made no changes), it compiled and worked fine. No segmentation fault this time....why would this happen?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Strange - it sounds a bit like you were trying to mix 32 and 64-bit code - which would make for interesting effects.

    It's not clear from what you describe exactly what is wrong, or why, but the above seems like a possible scenario, but I don't quite understand why that would be.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Sounds like a typical case of the Windows compiler being stupid. I've seen worse.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM