Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get software information Pin
kim00722-Aug-07 22:41
kim00722-Aug-07 22:41 
AnswerRe: How to get software information Pin
David Crow23-Aug-07 2:52
David Crow23-Aug-07 2:52 
GeneralRe: How to get software information Pin
James R. Twine23-Aug-07 3:31
James R. Twine23-Aug-07 3:31 
QuestionMajor problem with header files Pin
sGrabert22-Aug-07 22:41
sGrabert22-Aug-07 22:41 
AnswerRe: Major problem with header files Pin
toxcct22-Aug-07 22:47
toxcct22-Aug-07 22:47 
AnswerRe: Major problem with header files Pin
Cedric Moonen22-Aug-07 22:49
Cedric Moonen22-Aug-07 22:49 
GeneralRe: Major problem with header files Pin
toxcct22-Aug-07 22:57
toxcct22-Aug-07 22:57 
GeneralRe: Major problem with header files Pin
Cedric Moonen22-Aug-07 23:10
Cedric Moonen22-Aug-07 23:10 
toxcct wrote:
that's not true anymore under VS2005 AFAIK (but didn't tested actually)...


I never heard of that and I hardly imagine that...

Suppose that you have three files:
- One main.cpp that contains the main function
- One header file (file.h) that contains a function declaration
- One cpp file (file.cpp) that contains the function definition (of the previous function).

Suppose that you call this function in the main function. How can the compiler know, when compiling main.cpp that this function is actually defined in file.cpp ? What if you didn't include file.cpp in your project ?
Thus the error is generated at link time, when the linker cannot find the compiled function in the object files.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Major problem with header files Pin
toxcct22-Aug-07 23:19
toxcct22-Aug-07 23:19 
GeneralRe: Major problem with header files Pin
sGrabert22-Aug-07 23:22
sGrabert22-Aug-07 23:22 
GeneralRe: Major problem with header files Pin
Mark Salsbery23-Aug-07 6:16
Mark Salsbery23-Aug-07 6:16 
GeneralRe: Major problem with header files Pin
Mark Salsbery23-Aug-07 6:07
Mark Salsbery23-Aug-07 6:07 
GeneralRe: Major problem with header files Pin
toxcct23-Aug-07 6:12
toxcct23-Aug-07 6:12 
GeneralRe: Major problem with header files Pin
sGrabert22-Aug-07 23:05
sGrabert22-Aug-07 23:05 
GeneralRe: Major problem with header files Pin
Cedric Moonen22-Aug-07 23:18
Cedric Moonen22-Aug-07 23:18 
GeneralRe: Minor problem with header files [modified] Pin
sGrabert22-Aug-07 23:35
sGrabert22-Aug-07 23:35 
QuestionEmbed one application file in other application? Pin
bosfan22-Aug-07 22:27
bosfan22-Aug-07 22:27 
AnswerRe: Embed one application file in other application? Pin
Iain Clarke, Warrior Programmer22-Aug-07 23:32
Iain Clarke, Warrior Programmer22-Aug-07 23:32 
GeneralRe: Embed one application file in other application? Pin
bosfan23-Aug-07 0:45
bosfan23-Aug-07 0:45 
AnswerRe: Embed one application file in other application? Pin
David Crow23-Aug-07 2:55
David Crow23-Aug-07 2:55 
QuestionMIME embedded attachment Pin
monsieur_jj22-Aug-07 21:40
monsieur_jj22-Aug-07 21:40 
AnswerRe: MIME embedded attachment Pin
monsieur_jj22-Aug-07 23:37
monsieur_jj22-Aug-07 23:37 
AnswerRe: MIME embedded attachment Pin
Iain Clarke, Warrior Programmer22-Aug-07 23:42
Iain Clarke, Warrior Programmer22-Aug-07 23:42 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 14:37
monsieur_jj23-Aug-07 14:37 
GeneralRe: MIME embedded attachment Pin
Iain Clarke, Warrior Programmer23-Aug-07 21:57
Iain Clarke, Warrior Programmer23-Aug-07 21:57 

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.