C++: Difference between revisions

Jump to navigation Jump to search
m
→‎Startup code: fixing header text
[unchecked revision][unchecked revision]
No edit summary
m (→‎Startup code: fixing header text)
Line 6:
===Startup code===
By default, G++ attempts to link in startup code - the stuff usually done before main() is called, and after it exits / returns. This is all fine in a hosted environment, but you don't want to have it in your kernel (and it would not compile, either). Disable this by setting -nostartfiles.
 
===Pure virtual functions===
 
If you want to use pure virtual functions, your compiler needs one support function. It is only called in case a pure virtual function call cannot be made (e.g. if you have overriden the virtual function table of an object). But nonetheless your linker will complain about unresolved symbols, if you use pure virtual functions and don't provide that support routine.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu