|
-
September 8th, 2009, 12:46 AM
#5
Re: C++ Windows forms with .cpp
C++ compiler needs to know functopn prototype to compile function call. GlobalFunctions.h
contains mathadd function prototype. This is enough for compiler to compiler successfully Form1.cpp. mathadd is marked as external reference in Form1.obj, because function implementation is missing.
Compiling random_dice_wfa.cpp, compiler finds actual mathadd implementation.
Finally, linker links Form1.cpp and random_dice_wfa.cpp. At this stage it resolves external mathadd reference.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|