Thread: Compile Errors: Circular "SourceFileName" <- "Sourcefilename.o" dependency dropped

  1. #1
    Compile Errors = Schwa?!
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    15

    Compile Errors: Circular "SourceFileName" <- "Sourcefilename.o" dependency dropped

    Intro:

    I just started learning C++ a few days ago, and have found the tutorials to be of great help. As a way to test my knowledge of what I've learned so far, I've attempted to create a program that will take user input and output html to a file.

    I've spent a lot of time searching on google, through many other forums and have found many references to my problem, but either the answere's given were to vague, or didn't seem to fix my situation.


    Error 1:

    Circular Menu <- Menu.o dependency dropped.
    D:\Documents and Settings\Howie17\Desktop\C++ Fun! \Poker_HTML\Makefile.win [Build Error] [PokerStats4Web. exe] Error 1

    I'll gladly post what little code I've written so far if needed, but as a way to troubleshoot, I commented out all the extra code and still this error persists, which leads me to believe its a linking problem or I forgot to add a #include <somefile> unless those are interchangeably the same. If its a linking problem please be specefic in answering as I'm pretty clueless about this stuff.

    Error 2:

    [Linker error] undefined reference to `WinMain@16'
    ld returned 1 exit status

    **EDIT: Fixed! I had int main() { capitalized to int Main() {
    -woops (thanks again ILoveVectors)


    Additional Info:
    I'm using Bloodshed's Dev-C++ Version 4.9.9.2.

    Complete error log for error #1:

    Compiler: Default compiler
    Building Makefile: "D:\Documents and Settings\Howie17\Desktop\C++ Fun!\Poker_HTML\Makefile. win"
    Executing make...
    make.exe -f "D:\Documents and Settings\Howie17\Desktop\C++ Fun!\Poker_HTML\Makefile. win" Menu.o
    make.exe: Circular Menu <- Menu.o dependency dropped.

    g++.exe -c Menu -o Menu.o -I"C:/Dev-Cpp/lib/gcc/mingw32/ 3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" - I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/ include/c++/3.4.2" -I"C:/Dev-Cpp/include"

    g++.exe: Menu: linker input file unused because linking not done

    Execution terminated
    Last edited by Howie17; 08-31-2005 at 10:24 AM.

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >Complete error log for error #2:
    >main.c: undefined reference to `WinMain@16'
    This one means you're trying to build a windows gui application. What you want is a Console application. You should be able to change this under project options: Project->Project Options->Type->Win32 Console

    I have no idea about the other one.

  3. #3
    Compile Errors = Schwa?!
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    15
    I appreciate the help Swoopy, unfortunately it was set to Win32 Console when i checked it ; /. <vent> I'm SOOO tired fo seeing errors </vent>

  4. #4
    Banned
    Join Date
    Jun 2005
    Posts
    594
    >> **EDIT: Fixed! I had int main() { capitalized to int Main() {
    -woops (thanks again ILoveVectors)

    no problem

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quake 2 Compile Errors
    By Mercury in forum Game Programming
    Replies: 9
    Last Post: 01-26-2002, 09:40 PM
  2. Two compile errors i need help with.
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 01-06-2002, 09:52 AM
  3. Compile Errors ...
    By ginoitalo in forum C++ Programming
    Replies: 1
    Last Post: 12-31-2001, 02:22 AM
  4. compile errors
    By spider in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2001, 08:43 AM
  5. Compile Errors Due to STL & Iterator
    By kuphryn in forum C++ Programming
    Replies: 2
    Last Post: 12-02-2001, 10:08 AM