Thread: Cant compile using Codeblocks 10.05

  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Cordoba, Argentina
    Posts
    27

    Unhappy Cant compile using Codeblocks 10.05

    Hi All,

    I was using Dev-C++ 4.9.9.2 under Windows Xp-SP2 and I could at the time compile some console applications and also some basic DLLs that I would call from Excel (by using VBA).

    By recommandations, I installed Codeblocks (latest version is 10.05) but after downloading it, I tried to compile the same codes that I would use with Dev-C++ 4.9.9.2, and the would compile. The problem is now that my console application crashes and my DLL under Excel is not working (it returns #VALUE).

    I've checked the version of MinGW (I've downloaded the latest version from MinGW - Minimalist GNU for Windows - Browse Files at SourceForge.net, and told Codeblocks to use this version of MinGW (Settings->Compile Debuffer->Toolchain executables) and set up the directory of the compiler as 'c:\MinGW'.

    But I cannot yet compile a decent console application or DLL... :-(

    Any hint is appreciated.

    BR,

    Lucas

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    This is what I would try:
    Uninstall all IDE's and MinGW versions currently installed (codeblocks, wxDev, Dev-C++, etc...)
    Check your PATH environment variable (run:sysdm.cpl) and remove any MinGW/IDE paths that are still there.
    Install only one IDE+MinGW package (ie. codeblocks-10.05mingw-setup.exe).

    gg

  3. #3
    Registered User
    Join Date
    Dec 2010
    Location
    Cordoba, Argentina
    Posts
    27

    Thumbs up

    Ok, solved it.

    I did as you suggested. Removed every IDE and also MinGW (there was only one version of it). I did remove the calls to MinGW in the path variable. Finally reinstalled only Codeblocks with MinGW (codeblocks-10.05mingw-setup.exe) and got to compile and execute my console application just as it would do before.

    I still have some problems with my basic DLL though. But I'll try to see what's wrong. It does compile nicely but Excel reports #VALUE!

    Thanks,

    Lucas

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C and C++ compile speed
    By swgh in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-02-2007, 02:37 PM
  2. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  3. How to compile mfc libs from platform sdk
    By tjcbs in forum Windows Programming
    Replies: 6
    Last Post: 11-19-2006, 08:20 AM
  4. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  5. How can I compile C or C++ with Visual Studio .NET?
    By Dakkon in forum C Programming
    Replies: 8
    Last Post: 02-11-2003, 02:58 PM