Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Unresolved External Symbol error Pin
«_Superman_»30-Jun-09 2:53
professional«_Superman_»30-Jun-09 2:53 
GeneralRe: Simple Unresolved External Symbol error Pin
Member 470553830-Jun-09 6:06
Member 470553830-Jun-09 6:06 
GeneralRe: Simple Unresolved External Symbol error Pin
«_Superman_»30-Jun-09 16:37
professional«_Superman_»30-Jun-09 16:37 
AnswerRe: Simple Unresolved External Symbol error Pin
Pavan_Putra29-Jun-09 19:48
Pavan_Putra29-Jun-09 19:48 
GeneralRe: Simple Unresolved External Symbol error Pin
Cedric Moonen29-Jun-09 20:41
Cedric Moonen29-Jun-09 20:41 
AnswerRe: Simple Unresolved External Symbol error Pin
Stuart Dootson29-Jun-09 22:23
professionalStuart Dootson29-Jun-09 22:23 
GeneralRe: Simple Unresolved External Symbol error Pin
Member 470553830-Jun-09 5:59
Member 470553830-Jun-09 5:59 
GeneralRe: Simple Unresolved External Symbol error Pin
Stuart Dootson30-Jun-09 6:04
professionalStuart Dootson30-Jun-09 6:04 
Member 4705538 wrote:
By properly, i mean when i look at pieces of code, i always only see a something.h, never a something.cpp, in my own code i always had to add the supplier.h to the client.h and the supplier.cpp to the client.cpp, but was wondering if there is a better way of doing it?


Short answer - yes, there are better ways of doing it.

Longer answer - there are two approaches you could consider. Firstly, as I suggested earlier, make a library (static or dynamic, static's probably easier)[^] out of the supplier.cpp file and get the code that uses it to link against that library. Secondly, you could just add the supplier.cpp file to the Visual Studio project that contains client.cpp. That will automatically include the compiled object files of supplier.cpp and client.cpp in the final executable, which should mean it links and build successfully.

HTH!!!

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: Simple Unresolved External Symbol error Pin
Aric Wang29-Jun-09 23:30
Aric Wang29-Jun-09 23:30 
QuestionCan a data from a file be directly stored in a structure in C? Pin
Razanust29-Jun-09 16:25
Razanust29-Jun-09 16:25 
AnswerRe: Can a data from a file be directly stored in a structure in C? Pin
Harsh Shankar29-Jun-09 18:43
Harsh Shankar29-Jun-09 18:43 
AnswerRe: Can a data from a file be directly stored in a structure in C? Pin
CPallini29-Jun-09 21:40
mveCPallini29-Jun-09 21:40 
QuestionC++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 16:06
dAvId_BotMan29-Jun-09 16:06 
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 18:54
professional«_Superman_»29-Jun-09 18:54 
QuestionRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:08
dAvId_BotMan29-Jun-09 19:08 
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 19:16
professional«_Superman_»29-Jun-09 19:16 
QuestionRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:20
dAvId_BotMan29-Jun-09 19:20 
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 19:25
professional«_Superman_»29-Jun-09 19:25 
GeneralRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:35
dAvId_BotMan29-Jun-09 19:35 
AnswerRe: C++ pointers and DLL linking Pin
Pavan_Putra29-Jun-09 20:06
Pavan_Putra29-Jun-09 20:06 
QuestionKeyboard Hook - all in a DLL Pin
trungkiendt829-Jun-09 8:09
trungkiendt829-Jun-09 8:09 
AnswerRe: Keyboard Hook - all in a DLL Pin
«_Superman_»29-Jun-09 18:48
professional«_Superman_»29-Jun-09 18:48 
GeneralRe: Keyboard Hook - all in a DLL Pin
trungkiendt829-Jun-09 18:56
trungkiendt829-Jun-09 18:56 
GeneralRe: Keyboard Hook - all in a DLL Pin
«_Superman_»29-Jun-09 19:03
professional«_Superman_»29-Jun-09 19:03 
GeneralRe: Keyboard Hook - all in a DLL Pin
trungkiendt830-Jun-09 11:34
trungkiendt830-Jun-09 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.