Thread: Help configuring Geany

  1. #1
    Registered User
    Join Date
    Jun 2017
    Posts
    4

    Question Help configuring Geany

    Hi have been using GDB online Debugger | Compiler - Code, Compile, Run, Debug online C, C++but now decided to use Geany. However whenever I try and compile my code I get a whole lot of "incompatible implicit declaration" warnings.

    Why does it work in one environment and not the other? I have looked through the preference and can not see any obvious way to address this.

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,127
    Without seeing your code how can we answer your question?

    Geany is just an editor.

    What compiler do you use on your system?

    What O/S is your system?

    What C Standard does GDB online us?

    What C Standard does your compiler use?

  3. #3
    Registered User
    Join Date
    Jun 2015
    Posts
    1,640
    It sounds like your code is missing include files. Try adding these lines to the beginning:
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <ctype.h>
    You may need others (and may not need all of those).

  4. #4
    Registered User
    Join Date
    Jun 2017
    Posts
    1
    I think, OnlineGDB.com compiler might be having those warnings, Because it just run program, if there is no compiler errors, warnings are just ignored. So you may not be able to see actual warnings thrown by gcc compiler.
    Whereas with geany you run it locally and can see those warnings thrown by geany.
    btw, I was just wondering why did you choose to use geany over onlinegdb compiler.

  5. #5
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,127
    Quote Originally Posted by cnp View Post
    Whereas with geany you run it locally and can see those warnings thrown by geany.
    Once again, Geany is an IDE, or fancy editor! It is NOT a compiler! Like all IDE's, Geany CALLS a preinstalled compiler! You can even change the compiler or edit the compiler command in the "Build menu commands dialog" within the Geany settings, along with other settings, such as make, lint, and others as appropriate for the language being edited.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wiritng programs in Geany
    By Mcdom34 in forum C Programming
    Replies: 2
    Last Post: 02-01-2013, 02:22 PM
  2. Configuring VPN
    By ssharish2005 in forum Tech Board
    Replies: 5
    Last Post: 12-26-2006, 11:57 PM
  3. Configuring visual c++
    By silk.odyssey in forum C++ Programming
    Replies: 1
    Last Post: 04-22-2004, 08:21 AM
  4. Configuring SDL with Borland
    By Nakeerb in forum C++ Programming
    Replies: 4
    Last Post: 10-29-2002, 09:04 PM
  5. configuring emacs
    By greenRoom in forum Linux Programming
    Replies: 2
    Last Post: 10-25-2001, 05:23 PM

Tags for this Thread