Subj : Re: I am using Borland C++4.52 and having a linking issus To : borland.public.cpp.borlandcpp From : James Kim Date : Tue Jul 29 2003 03:52 pm Thanks for your advice. I do know that 'constructor/new' works with startup codes provided by Borland C++4.52. But the thing is that I have to use the one that I have for two reasons: 1) I don't have an Borland Turbo Assembler 2) I don't know much about writing a startup code YET! hehe... Anyhow... my question is why the startup code that I have would work when not used with a 'constructor & new'? Any thought? Bob Gonder wrote: > James Kim wrote: > > > >>>tlink /m /v /s startup.obj Number.obj test.obj, test.exe, test.map > >>> Error: Undefined symbol operator new(unsigned int) in module TEST.CPP > > > >Borland C++4.52 Compiler seems to fail to link whenever I use C++ related > >utilities such as "constructor" and "new". > > That's because the Borland rtl that includes "new" isn't in your link > command. > > >Would this have to do with my startup code? or am I missing something in > >linking? > > Is there some reason you rolled your own startup instead of using > Borland's? > Try it with just a normal project. See what the IDE uses to link. > Then replace Borland's starup with yours and debug your startup > until it links/runs. .