Thread: unresolved external symbol

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    164

    unresolved external symbol

    I searched around a bit and found related topics, not sure if I am just not educated enough in this type of coding but I can not seem to identify where my link to the class and the call to functions are failing to link up. I got 11 of these errors all related to a function in the related .cpp file. Can anyone tell me why it would see the functions but not link to them properly? Thanks


    Code:
    SymbolScanner.obj : error LNK2019: unresolved external symbol SCAN_GetDecoderParams referenced in function "public: void __cdecl CSymbolScanner::SetI2O5DecoderLength(void)" (?SetI2O5DecoderLength@CSymbolScanner@@QAAXXZ)

  2. #2
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    did you use sbe.h ?

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    164
    sbe.h??? I apologize, but I have never heard of that header file. Currently researching it however, there was no listing in any of my include files for MFC 6.0 or embedded 4.0?

    Well, I'm not sure what that means but obviously, no I did not use sbe.h and if is not listed in any ofmy include files, I think it risky.... but thanks for the reply, I appreciate the time invested.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > unresolved external symbol SCAN_GetDecoderParams
    Is this the name of a function you've written?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    If its a function you got from the api, den you might have to include its lib, check its documentations for more info. If you wrote it yourself, den i guess you didn't include the relevant header file for it. ( supposing you wrote the function details somewhere else )
    /* Have a nice day */

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    164
    Thanks everyone for the responses. I found the problem after doing a bit more searching on this site just as the last individual had pointed out, my function calls need certain links to libraries, which I had forgotten to add.

    I added the files and that fixed the problem. Thanks-

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