APstring

This is a discussion on APstring within the C++ Programming forums, part of the General Programming Boards category; I have apstring.c and apstring.h, and I have the header files in struct where my name and profession is for ...

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    APstring

    I have apstring.c and apstring.h, and I have the header files in struct where my name and profession is for my RPG that I'm making. But when I try to compile (no work with the apstring stuff yet), I get this error:
    Code:
    main.obj : error LNK2001: unresolved external symbol "public: __thiscall apstring::~apstring(void)" (??1apstring@@QAE@XZ)
    main.obj : error LNK2001: unresolved external symbol "public: __thiscall apstring::apstring(void)" (??0apstring@@QAE@XZ)
    I've spent about 15-25 mins trying to fix this, and spent another 10 mins searching around....I would greatly appreciate any help that anyone can offer me.

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Are the files included in the project?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    No, there in the include folder *I'm also using VC++ 6.0*

  4. #4
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    The .cpp file must be included inside the project, or you can edit the apstring.h to #include the apstring.cpp, but that's pretty ugly and hackish .
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fatal error LNK1104
    By DMH in forum C++ Programming
    Replies: 2
    Last Post: 11-16-2005, 03:46 AM
  2. hext to binary using apstring
    By xxratcatxx in forum C++ Programming
    Replies: 1
    Last Post: 10-10-2003, 02:46 PM
  3. apstring prob
    By pissed[off] in forum C++ Programming
    Replies: 2
    Last Post: 11-04-2002, 10:46 AM
  4. apstring
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2002, 04:41 PM
  5. sorting apstring help
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 03-13-2002, 05:02 PM

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