Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Wed Aug 13, 2008 1:54 pm Post subject: Linking errors help |
|
|
Hey,
well I copid out the "Decoder" project (the folder) from the TitanMS project and pasted it in my project folder and added these lines to my main-project file:
| Code: | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Decoder", "Decoder\Decoder.vcproj", "{20BDE2C9-A4F8-4AED-843E-A9523990A201}"
EndProject |
Now when I open my main-porject with VC++ both sub-porjects appear (main and decoder).
Now I wanted to use the decoder to encrypt a packet, so:
| Code: | #include "../Decoder/Decoder.h"
...
...
...
Decoder* dec;
dec = new Decoder;
dec->encrypt((unsigned char *)packet, pos); |
But I'm getting this error:
| Code: | | main.obj : error LNK2001: unresolved external symbol ""public: void __thiscall Decoder::encrypt(unsigned char *,int)" (?encrypt@Decoder@@QAEXPAEH@Z)". |
Why? It works on TitanMS too..why doesn't it here?
|
|