Thread: format not recognuzed

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    4

    format not recognuzed

    i got this error message when i tried to compile my project:


    C:\MYDOCU~1\RSRC.o: file not recognized: File format not recognized

    all i did was add the iostream.h include and write a stupid little for loop. I didn't add any includes to the resource file or anything. this is the first time this has happened. please help.

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    It means you have to reformat your brain.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    4
    ??? seriously, i'm lost on this (only my third attempt at writing a program)

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    What compiler are you using?
    What commands are you using to compile your code?

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    4
    I am using bloodshed dev 4. the whole source to my code is as follows:


    #include <stdio.h>
    #include <iostream.h>

    int main(int argc, char *argv[])
    {
    int x;
    for (x=0; x<100; x++)
    {
    cout<<x<<endl;
    }
    return 0;
    }

  6. #6
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    So you save it, go to the compile menu, and select compile?

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    4
    i saved everything then compiled and still got

    C:\MYDOCU~1\RSRC.o: file not recognized: File format not recognized



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  2. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 06:02 AM
  3. Compression/Decompression Wave File and MP3
    By cindy_16051988 in forum Projects and Job Recruitment
    Replies: 51
    Last Post: 04-29-2006, 06:25 AM
  4. A Better Format Simulator
    By toonlover in forum C++ Programming
    Replies: 2
    Last Post: 01-07-2006, 06:14 PM
  5. Seeking Format Advice
    By PsychoBrat in forum Game Programming
    Replies: 3
    Last Post: 10-05-2005, 05:41 AM