Thread: Issues with Anagram Program

  1. #1
    Registered User toadkiwi's Avatar
    Join Date
    Feb 2008
    Posts
    31

    Issues with Anagram Program

    Whats up C board. Ok so I'm writing a program to check if two user-input strings are anagrams of eachother or not.

    I've written code, but get this error upon compilation:

    Code:
    Undefined                       first referenced
     symbol                             in file
    main                                /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.                  
    6/crt1.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status
    I don't know what to make of it. Any ideas? Possibly not using the right compiler? All I do is "gcc <file>"

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Why not post up your REAL code, instead of just your error message?

    My crystal ball is in the shop for repairs this week.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Adak View Post
    Why not post up your REAL code, instead of just your error message?

    My crystal ball is in the shop for repairs this week.
    The real code does not matter. The problem is due to an incorrect installation of gcc.

    EDIT: On second thought, it might not be -- the obvious question: do you actually have a main() function?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Continued issues with Winows Errors when running program
    By hpteenagewizkid in forum C Programming
    Replies: 6
    Last Post: 11-14-2006, 03:51 PM
  2. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  3. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  4. my server program auto shut down
    By hanhao in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-13-2004, 10:49 PM
  5. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM