Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linker error??? Pin
alex.barylski27-Feb-04 11:42
alex.barylski27-Feb-04 11:42 
GeneralRe: Linker error??? Pin
alex.barylski27-Feb-04 11:45
alex.barylski27-Feb-04 11:45 
GeneralRe: Linker error??? Pin
Neville Franks27-Feb-04 11:50
Neville Franks27-Feb-04 11:50 
GeneralWord file format Pin
alex.barylski27-Feb-04 11:16
alex.barylski27-Feb-04 11:16 
GeneralRe: Word file format Pin
Prakash Nadar27-Feb-04 14:24
Prakash Nadar27-Feb-04 14:24 
GeneralRe: Word file format Pin
22491727-Feb-04 18:06
22491727-Feb-04 18:06 
GeneralRe: Word file format Pin
alex.barylski28-Feb-04 10:35
alex.barylski28-Feb-04 10:35 
Generalscrunching clib stuff in vc7 Pin
stephen.hazel27-Feb-04 10:31
stephen.hazel27-Feb-04 10:31 
It looks like a minimal win32 api app uses 25K or so of clib code.
I'm writing a dumb little utility app.
It needs NO file i/o or sprintf or malloc or dbcs stuph.
ALL i need is basic c++ stuff including
new, delete, classes and exceptions.

Has anyone any tips?

I've tried this:
// __boot.c - minimal startup<br />
<br />
#include <windows.h><br />
<br />
int WinMainCRTStartup (void)<br />
{ STARTUPINFO StartupInfo;<br />
   StartupInfo.dwFlags = 0;<br />
   GetStartupInfo (& StartupInfo);<br />
   return WinMain (GetModuleHandleA(NULL), NULL, (char *)GetCommandLineA (),<br />
                   StartupInfo.dwFlags & STARTF_USESHOWWINDOW<br />
                   ? StartupInfo.wShowWindow : SW_SHOWDEFAULT);<br />
}


But the linker says i need:
(xx.obj : error LNK2001: unresolved external symbol BLAH)

"const type_info::`vftable'" (??_7type_info@@6B@)<br />
_sprintf<br />
_memmove<br />
_strchr<br />
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)<br />
"void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)<br />
lp.exe : fatal error LNK1120: 6 unresolved externals


Now, i can replace sprintf, _memmove and _strchr myself.
And I guess I can do new/delete with HeapAlloc, eh?

But whatta I do about that type_info::`vftable' biz ???
Is that some kinda RTTI stuff?

Any ideers anybody?

Thanks Smile | :)

...Steve
GeneralRe: scrunching clib stuff in vc7 Pin
Prakash Nadar27-Feb-04 14:17
Prakash Nadar27-Feb-04 14:17 
GeneralRe: scrunching clib stuff in vc7 Pin
stephen.hazel28-Feb-04 7:46
stephen.hazel28-Feb-04 7:46 
GeneralCalling Conventions Pin
Nick Parker27-Feb-04 9:25
protectorNick Parker27-Feb-04 9:25 
GeneralRe: Calling Conventions Pin
22491727-Feb-04 23:32
22491727-Feb-04 23:32 
QuestionMDI? Pin
kruncher27-Feb-04 9:14
kruncher27-Feb-04 9:14 
AnswerRe: MDI? Pin
Kevin McFarlane28-Feb-04 4:36
Kevin McFarlane28-Feb-04 4:36 
GeneralRe: MDI? Pin
Timothy Grabrian28-Feb-04 15:47
professionalTimothy Grabrian28-Feb-04 15:47 
GeneralRe: MDI? Pin
Kevin McFarlane28-Feb-04 23:40
Kevin McFarlane28-Feb-04 23:40 
GeneralWEB - form filling Pin
progman27-Feb-04 6:45
progman27-Feb-04 6:45 
GeneralRe: WEB - form filling Pin
Ravi Bhavnani27-Feb-04 7:06
professionalRavi Bhavnani27-Feb-04 7:06 
Generalcompile files at runtime Pin
Qraven27-Feb-04 6:43
Qraven27-Feb-04 6:43 
GeneralRe: compile files at runtime Pin
vladfein27-Feb-04 14:16
vladfein27-Feb-04 14:16 
Generalproblem extracting icon from shortcut Pin
feline_dracoform27-Feb-04 6:26
feline_dracoform27-Feb-04 6:26 
GeneralExtern vars unresolved at link Pin
jimNLX27-Feb-04 5:53
jimNLX27-Feb-04 5:53 
GeneralRe: Extern vars unresolved at link Pin
Neville Franks27-Feb-04 11:17
Neville Franks27-Feb-04 11:17 
GeneralRe: Extern vars unresolved at link Pin
Prakash Nadar27-Feb-04 14:28
Prakash Nadar27-Feb-04 14:28 
Generala printing question Pin
saibetty27-Feb-04 5:50
saibetty27-Feb-04 5:50 

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.