Dev problems

This is a discussion on Dev problems within the C Programming forums, part of the General Programming Boards category; I was trying to use Bloodshed's Dev-C++ IDE to work with C programs. I typed this up: Code: #include <stdio.h> ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    103

    Unhappy Dev problems

    I was trying to use Bloodshed's Dev-C++ IDE to work with C programs. I typed this up:
    Code:
    #include <stdio.h>
    int main (void) {
         println("Hello");
         return 0;
    }
    Here's what it says happened when I tried to compile it:
    [Linker error] Undefined reference to "println"

    What's wrong?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    As expected, unless you have defined a function called println() somewhere else.

    There is no standard IO function called println. You may be thinking of puts() or printf(), perhaps?

    --
    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 2009
    Posts
    103
    oh whoops, been doing too much java programming!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. Programming With Dev C++
    By v01d in forum C++ Programming
    Replies: 3
    Last Post: 09-14-2007, 01:51 AM
  3. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 05:35 AM
  4. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 04:48 PM
  5. Dev and errors
    By Moffesto in forum C++ Programming
    Replies: 0
    Last Post: 06-22-2002, 12:17 AM

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