Menu

Wont compile, plz help.

2011-03-17
2012-09-26
  • Micheal Inman`

    Micheal Inman` - 2011-03-17

    Just learning C++ and tried this book example of using resource files.
    .cpp file:

    include <cstdlib>

    include <iostream>

    using namespace std;

    void BigDog(int KibblesCount);

    int main(int argc, char *argv)
    {
    BigDog(3);
    system("PAUSE");
    return EXIT_SUCCESS;
    }

    .rc file:

    void BigDog(int KibblesCount){
    cout << "I'm a lucky dog" << endl;
    cout << "I have " << KibblesCount << " pieces of food." << endl;
    }

    Compiler says this:

    can't open font file `KibblesCount){': No such file or directory
    C:\Dev-Cpp\Makefile.win Error 1

    Using Ver 4.9.9.2 on Vista.
    It works if I place all in .cpp but not in a separate .rc file.
    TY

     
  • Steve A

    Steve A - 2011-03-18

    Did you read the "READ THIS FIRST....." file before you posted ?
    Especially the part about Dev-C++ not working on Vista nor Win-7.

    You will continue to get linker error.

    That's because the last version of windows it ran on (with many knows
    problems) was XP.
    The current release of Dev-C++ (4.9.9.2) is 6 years old and no fixes have been
    made since 2005.
    The developer has abandoned this sourceforge project.

    If you want to learn C/C++, I recommend you consider :
    1) Code::Blocks with MingW
    2) VS-VC++ Express

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.