Thread: Quincy 2005: Compiling Errors

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    15

    Quincy 2005: Compiling Errors

    Hi,

    I'm a fairly new programmer (well I've been exposed to it for quite a few years now, but have yet to refine my skills).

    For the past month, I've been using Notepad as my editor and compiling and running programs via command line executions in MS-DOS.

    However, I am interested in using Quincy 2005 as an editor, since I am quite familiar with it from school and so forth.

    A problem I encounter when trying to compile through Quincy is the following:
    Code:
    error: ISO C90 does not support 'long long'
    This error basically occurs when the program encounters the #include<stdio.h> or #include<stdlib.h> lines in the source code during execution. These libraries use 'long long' as variable declaration types in some of their functions.

    I initially thought the error occurred because I am using Dev-C++ as the default compiler, while Quincy comes with MingW. Hence, I tried changing the default compiler to MingW, but still no luck.

    Furthermore, I also noticed that MingW uses 'long long' in its libraries for as variable declaration types.

    Has anyone encountered this problem, if so, please share your thoughts.

    P.S. I thought that maybe I was not correctly setting the path name (via Control Panel>System>Advanced>Environment Variables) when I changed the default compiler from Dev-C++ to MingW, but I doubt that.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    If you get this type of error, it's caused by one of two things:
    1. You are specifiying you want strict ISO C90 compatibility, and the standard libraries are in themselves not strict ISO compatible - which is a bit strange.
    2. You are using include-files designed for one compiler, and compiling with a different compiler - this will cause problems like this - you should use the include-files that belong to the compiler. System include files are NOT freely interchangable between different compilers.

    --
    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
    Registered User
    Join Date
    Jan 2008
    Posts
    15
    I've tried changing the compiler to MingW as well (which is the compiler that comes with Quincy)...I still obtain the same errors...I am thinking that it might be the way I am specifying the path name that leads to the MingW compiler...but even so, it looks correct to me

    I am using Windows XP, so I went to Control Panel>System>Advanced>Environment Variables

    This is the path direction setup for Dev-C++:

    &#37;SystemRoot%\system32;%SystemRoot%;%SystemRoot %\System32\Wbem;C:\Dev-C++\Bin;

    I replaced the part that states C:\Dev-C++\Bin with:

    C:\Program Files\quincy\MingW\bin

    To direct it to the MingW compiler

    But still no luck
    Last edited by Thileepan_Bala; 01-18-2008 at 06:45 AM. Reason: Error in original message

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It's not the path to the compiler that is the problem - it's the path to your INCLUDE files that is causing the problem. So unless when you change the path to the compiler, it also, automatically knows where to look for the include files for that executable, it won't help. [It may know how to find "it's own" include files - I haven't worked with MingW enough to know for sure]. Check if there is a "include directory" listed in Quincy, and if that points to the same directory as the compiler is in.

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

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    15
    Hey,

    Here's something I tried:

    I changed the default compiler to MingW and ran the program through DOS, and it compiled properly. But when I tried to compile through Quincy, I still get that same warning about ISO C90 not supporting 'long long'.

    Is there a setting I have to change in Quincy or something. I've looked through the help pages, and it has nothing specific to this kind of problem.

    I know it has to be something minor, just can't seem to figure it out.

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    15
    Hey...i just realized that the COMPILING works fine...it is the BUILD operation which is producing this error

    Still want to fix it though...

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    15
    Figured it out!!!

    There was something I had to change in the options...you were right...in the options tab it specified for strict ISO compatibility...I just unchecked that...everything is fine

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 07:42 AM
  3. Replies: 2
    Last Post: 12-07-2004, 02:31 AM
  4. Compiling using g++ and getting errors...
    By alvifarooq in forum C++ Programming
    Replies: 2
    Last Post: 09-24-2004, 08:36 AM
  5. stupid errors i got after compiling!! HELP ME!
    By Leeman_s in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2001, 04:13 PM