Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strange linking error with operator overloading Pin
Viorel.2-Jul-06 22:02
Viorel.2-Jul-06 22:02 
GeneralRe: strange linking error with operator overloading Pin
George_George2-Jul-06 23:37
George_George2-Jul-06 23:37 
GeneralRe: strange linking error with operator overloading Pin
Viorel.3-Jul-06 0:08
Viorel.3-Jul-06 0:08 
GeneralRe: strange linking error with operator overloading [modified] Pin
George_George3-Jul-06 0:33
George_George3-Jul-06 0:33 
GeneralRe: strange linking error with operator overloading Pin
Viorel.3-Jul-06 1:58
Viorel.3-Jul-06 1:58 
GeneralRe: strange linking error with operator overloading Pin
George_George3-Jul-06 2:45
George_George3-Jul-06 2:45 
GeneralRe: strange linking error with operator overloading Pin
Viorel.3-Jul-06 3:35
Viorel.3-Jul-06 3:35 
GeneralRe: strange linking error with operator overloading [modified] Pin
George_George3-Jul-06 4:08
George_George3-Jul-06 4:08 
Thank you Viorel!


Viorel. wrote:
A function is "exported" from .obj or .lib binary files means that there is an address which points to the beginning of the compiled function. This address is used by linker to generate the CALL microprocessor instructions. If a function is marked as inline, then no such address is stored in the .obj or .lib file, because it is supposed that the body of the function will be entirely inserted by compiler instead of CALL instruction.

It seems that only non-inline and not-static functions are exported by .obj and .lib files.


I think in my case, in foo.cpp, since it includes foo.h, in which operator =() is declared as inline function, so it is not exported, right?


Viorel. wrote:
George_George wrote:
Do you mean the when the compiler builds foo.cpp or adapter.cpp or goo.cpp?

Yes.


Confused. Do you mean them all or one of them? I think it should be adapter.cpp, right?


regards,
George

-- modified at 10:09 Monday 3rd July, 2006
GeneralRe: strange linking error with operator overloading Pin
Viorel.3-Jul-06 4:24
Viorel.3-Jul-06 4:24 
GeneralRe: strange linking error with operator overloading Pin
George_George3-Jul-06 17:12
George_George3-Jul-06 17:12 
Questionsplit window Pin
ashish dogra2-Jul-06 21:27
ashish dogra2-Jul-06 21:27 
AnswerRe: split window Pin
Weiye Chen3-Jul-06 0:06
Weiye Chen3-Jul-06 0:06 
QuestionUse CDHtmlDialog in statically linked MFC DLL Pin
rockryan2-Jul-06 21:27
rockryan2-Jul-06 21:27 
AnswerRe: Use CDHtmlDialog in statically linked MFC DLL Pin
Hamid_RT2-Jul-06 22:31
Hamid_RT2-Jul-06 22:31 
Questionhow to transfer data between the tabs Pin
kotiramkoteswararao2-Jul-06 20:44
kotiramkoteswararao2-Jul-06 20:44 
AnswerRe: how to transfer data between the tabs Pin
capricious_0012-Jul-06 22:39
capricious_0012-Jul-06 22:39 
QuestionGEetting Socket Notification Sink Error Pin
zahid_ash2-Jul-06 20:31
zahid_ash2-Jul-06 20:31 
Questionsplitter window Pin
ashish dogra2-Jul-06 19:50
ashish dogra2-Jul-06 19:50 
AnswerRe: splitter window Pin
Abhi Lahare2-Jul-06 20:03
Abhi Lahare2-Jul-06 20:03 
GeneralRe: splitter window Pin
ashish dogra2-Jul-06 20:31
ashish dogra2-Jul-06 20:31 
GeneralRe: splitter window Pin
Abhi Lahare2-Jul-06 23:41
Abhi Lahare2-Jul-06 23:41 
QuestionSMTP: 'Administrative prohibition' response after end of data [modified] Pin
kanikanz2-Jul-06 19:34
kanikanz2-Jul-06 19:34 
AnswerRe: SMTP: 'Administrative prohibition' response after end of data Pin
Michael Dunn2-Jul-06 20:58
sitebuilderMichael Dunn2-Jul-06 20:58 
GeneralRe: SMTP: 'Administrative prohibition' response after end of data Pin
kanikanz3-Jul-06 11:49
kanikanz3-Jul-06 11:49 
AnswerRe: SMTP: 'Administrative prohibition' response after end of data Pin
kanikanz10-Jul-06 13:57
kanikanz10-Jul-06 13: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.