Thread: LNK2019: unresolved external symbol

  1. #1
    Registered User
    Join Date
    Jan 2006

    LNK2019: unresolved external symbol

    I built an MFC GUI and am now trying to tie in a networking API. With the api came come console based examples, which are pretty straightforward. But, Iím trying to add the trader class to my application I added the .h file and everything went fine. Then Iím started to include the class functions 1 by 1Ö Iím only doing the constructor right now and I start to get all these error LNK2019: unresolved external symbol in the Basic_Order_WindowDLG.obj
    (the application is just a dialog box) What am I doing wrong?

  2. #2
    Registered User
    Join Date
    Jan 2006
    Never mind the above question I realized I didn't include some libs into my project settings... after that it was fine. I do still have 1 more question though.

    I'm implementing a networking class into a MFC application, this class was written originally for a console application, so there are printfís ect throughout it. Itís builds but Iím wondering what effect these will have on the MFC application since itís not console based?

  3. #3
    Registered User
    Join Date
    Sep 2004
    printf will do nothing if there is no console. It wont crash your program or anything though.

  4. #4
    I am me, who else?
    Join Date
    Oct 2002
    If you want output to the "console" esp while in a MS compiler, I suggest you check out the TRACE line of macros, in case you wanted the output that would be the way. But if you don't care then bithub is right printf shouldn't do anything nasty at all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM