Good Code-fu? Answer this question. Dev-C++ doesn't like cut and paste

This is a discussion on Good Code-fu? Answer this question. Dev-C++ doesn't like cut and paste within the C++ Programming forums, part of the General Programming Boards category; Dear all I am currently using: Windown XP 2002 Pro with Service Pack 2 Dev-C++ Version 4.9.9.2 and I am ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    16

    Good Code-fu? Answer this question. Dev-C++ doesn't like cut and paste

    Dear all

    I am currently using:

    Windown XP 2002 Pro with Service Pack 2
    Dev-C++ Version 4.9.9.2

    and I am pretty new to C++, could someone with stronger code-fu please tell me WHY?
    I am currently learning C++ using a dummies book which comes with a CD with some code on it. The book recommend using Dev-C++ (though I am using code::block as well, just to see whats the difference between different IDE). I have tried to import the project into the Dev-C++ environment, and errors pops up.....

    Error Message:
    cannot find -lobjc
    ld returned 1 exit status
    [Build Error] [Pointer1.exe] Error 1

    I have had some suggestion from the kind members of this forum, unfortunatly those suggestion didn't resolve the problem completly.

    So just in case I have been a real dummies, I retype the code in, instead of just opening the project that came with the CD, and it WORKS!!

    I have tried it with other code on the CD, same errors emerged, when typed in, they run. Is there some invisible force at play?

    one last thing, does anyone know if code::block has got a genetic algorithm package like dev-c++?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    -lobjc means linking against the runtime library for Objective C, which is yet another language. Something in this project is pretty much screwed up.

    As for genetic algorithms, look at the name of the package, search for it on the web, download and install it. Dev-C++ won't contain such a thing of its own development.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I think this link shows the answer:
    http://osdir.com/ml/gnu.dev-cpp.user.../msg00186.html

    --
    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.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    16
    Quote Originally Posted by CornedBee View Post
    -lobjc means linking against the runtime library for Objective C, which is yet another language. Something in this project is pretty much screwed up.

    As for genetic algorithms, look at the name of the package, search for it on the web, download and install it. Dev-C++ won't contain such a thing of its own development.
    The code works fine, I have tried it on different IDE and works. Regarding the GA package, I have already found one for Dev-C++, and I have google it on the web. I am actually asking for a GA package for code::block.

    Thanks

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    16
    Quote Originally Posted by matsp View Post
    I think this link shows the answer:
    http://osdir.com/ml/gnu.dev-cpp.user.../msg00186.html

    --
    Mats
    I have also done that, some other forum members have already pointed that out before. I was searching the forum for answers. I have also change my complier to mingw32-g++ and that didn't resolve the problem. Any other ideas?

    Thanks!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21