compiling in cpp file

I need to compile a .cpp file into my Win2k intermediate driver. Is
this possible? It compiles fine, but when it starts to link I get a
bunch of errors, numero uno is “unresolved external symbol : void
__cdecl operator delete(void *)”. What do I need to do to get this to
link together?

Thanks,
John


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You have to be very careful about C++ runtime support. The fact that you
have an unresolved reference to the global delete operator indicates that
your .cpp file assumes the existence of C++ runtime support not provided by
the NT kernel programming environment.

That’s the bad news, the good news is that there is help, and its free. See
my website resource page for a free C++ kernel runtime library. Also Numega
(www.compuware.com) has a similar package, also free.

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 12:33 PM
To: NT Developers Interest List
Subject: [ntdev] compiling in cpp file

I need to compile a .cpp file into my Win2k intermediate driver. Is
this possible? It compiles fine, but when it starts to link I get a
bunch of errors, numero uno is “unresolved external symbol : void
__cdecl operator delete(void *)”. What do I need to do to get this to
link together?

Thanks,
John


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It seems to me that the code written in the cpp file uses new and
delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?

Thanks,
John

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, April 04, 2001 10:39 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

You have to be very careful about C++ runtime support. The fact that you
have an unresolved reference to the global delete operator indicates
that
your .cpp file assumes the existence of C++ runtime support not provided
by
the NT kernel programming environment.

That’s the bad news, the good news is that there is help, and its free.
See
my website resource page for a free C++ kernel runtime library. Also
Numega
(www.compuware.com) has a similar package, also free.

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 12:33 PM
To: NT Developers Interest List
Subject: [ntdev] compiling in cpp file

I need to compile a .cpp file into my Win2k intermediate driver. Is
this possible? It compiles fine, but when it starts to link I get a
bunch of errors, numero uno is “unresolved external symbol : void
__cdecl operator delete(void *)”. What do I need to do to get this to
link together?

Thanks,
John


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@sonicwall.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yeah, 'cause like I said, there is NO ZERO NADA kernel c++ runtime support.
At the top of the list of ‘no kernel runtime support’ would be ‘new’ and
‘delete’. Just grab my or numega’s kernel c++ runtime (or is that rumtime)
library.

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 12:50 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

It seems to me that the code written in the cpp file uses new and
delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?

Thanks,
John

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, April 04, 2001 10:39 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

You have to be very careful about C++ runtime support. The fact that you
have an unresolved reference to the global delete operator indicates
that
your .cpp file assumes the existence of C++ runtime support not provided
by
the NT kernel programming environment.

That’s the bad news, the good news is that there is help, and its free.
See
my website resource page for a free C++ kernel runtime library. Also
Numega
(www.compuware.com) has a similar package, also free.

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 12:33 PM
To: NT Developers Interest List
Subject: [ntdev] compiling in cpp file

I need to compile a .cpp file into my Win2k intermediate driver. Is
this possible? It compiles fine, but when it starts to link I get a
bunch of errors, numero uno is “unresolved external symbol : void
__cdecl operator delete(void *)”. What do I need to do to get this to
link together?

Thanks,
John


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@sonicwall.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> ----------

From: Satish KS[SMTP:xxxxx@aalayance.com]
Reply To: NT Developers Interest List
Sent: Wednesday, April 04, 2001 10:22 PM
To: NT Developers Interest List
Subject: [ntdev] Re: [RE: How to disable dual cpu automatically
before launchin g an application]

>Try starting CMD.EXE, setting it’s affinity, and then launching your app
>from within that window.

how to set affinity of cmd.exe ?

TaskMgr, right click on cmd.exe, Set Affinity.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Easiest approach is to remove new/delete dependency by using the relevant
alloc/free routines per the environment used.
This will be much more efficient anyway.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 9:50 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

It seems to me that the code written in the cpp file uses new and
delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I guess I’m missing how an inlined new or delete that directly translate to
ExAllocate/ExFree functions are ‘much [less] efficient’. But I think this
will degenerate (or perhaps now has,) into the “C++ in the kernel is Bad
and Evil” religious dispute.

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Wednesday, April 04, 2001 1:09 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

Easiest approach is to remove new/delete dependency by using the relevant
alloc/free routines per the environment used.
This will be much more efficient anyway.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 9:50 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

It seems to me that the code written in the cpp file uses new and
delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It’s an easy step to override system new and delete functions with your own.
You don’t need to change the source, just write two new functions.

Hope this helps,

Alberto.

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Wednesday, April 04, 2001 1:09 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

Easiest approach is to remove new/delete dependency by using the relevant
alloc/free routines per the environment used.
This will be much more efficient anyway.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Wednesday, April 04, 2001 9:50 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

It seems to me that the code written in the cpp file uses new and
delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>It seems to me that the code written in the cpp file uses new and

delete, but that’s the extent of the “cpp-ness” of the code. There are
no classes, etc., just the use of new and delete. Do I still need to
use the C++ kernel runtime library?

If u are not using New and Delete for Allocting and De-allocating memory it is
not required.

Regards,
Satish K.S


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>

>Try starting CMD.EXE, setting it’s affinity, and then launching your app
>from within that window.

how to set affinity of cmd.exe ?

TaskMgr, right click on cmd.exe, Set Affinity.

In right click. Only priorityes are there. No affinity.

Regards,
Satish K.S


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You’re not missing anything, given those parameters.
My point was that it is worth including a C++ runtime when to port C++ code to C
would require many hours of work translating classes and C++ additions to straight
C. BUT, if the only thing you’re using is new/delete – it’s easier to just
replace those calls as appropriate – rather than going through a learning curve
of how to get C++ running in the kernel. I don’t take any particular viewpoint as
to whether “C++ in the kernel is bad and evil” or otherwise – each case should be
judged on its own pros/cons. I envisioned a C++ runtime dragging in a whole bunch
of runtime code that was not likely to be used (when the only extensions used are
new/delete) – and usually that does not help efficiency. There’s also the
question of support – I’d rather support my own code, not someone else’s runtime
– It’s hard enough dealing with bugs in the kernel, MS runtime bugs, let alone
another 3rd party’s – but that comes down to personal preference.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, April 04, 2001 10:16 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

I guess I’m missing how an inlined new or delete that directly translate to
ExAllocate/ExFree functions are ‘much [less] efficient’. But I think this
will degenerate (or perhaps now has,) into the “C++ in the kernel is Bad
and Evil” religious dispute.

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Wednesday, April 04, 2001 1:09 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

Easiest approach is to remove new/delete dependency by using the relevant
alloc/free routines per the environment used.
This will be much more efficient anyway.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> ----------

From: Satish KS[SMTP:xxxxx@aalayance.com]
Reply To: NT Developers Interest List
Sent: Thursday, April 05, 2001 1:01 AM
To: NT Developers Interest List
Subject: [ntdev] Re: [Re: [RE: How to disable dual cpu automatically
before launchin g an application]]

>
> >Try starting CMD.EXE, setting it’s affinity, and then launching your
app
> >from within that window.
>
> how to set affinity of cmd.exe ?
>
>TaskMgr, right click on cmd.exe, Set Affinity.

In right click. Only priorityes are there. No affinity.

Well, and do you have SMP machine? I presume this choice isn’t on uni CPU
machine because has no sense there.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Whn on an SMP machine, right click also brings up affinity.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Satish KS
Sent: Wednesday, April 04, 2001 6:02 PM
To: NT Developers Interest List
Subject: [ntdev] Re: [Re: [RE: How to disable dual cpu automatically
before launchin g an application]]

>
> >Try starting CMD.EXE, setting it’s affinity, and then
launching your app
> >from within that window.
>
> how to set affinity of cmd.exe ?
>
>TaskMgr, right click on cmd.exe, Set Affinity.

In right click. Only priorityes are there. No affinity.

Regards,
Satish K.S


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Are you looking at TaskMgr on an SMP system? Affinity doesn’t apply on a UP
system, hence doesn’t appear on the TaskMgr context menu.

Phil

-----Original Message-----
From: Satish KS [mailto:xxxxx@aalayance.com]
Sent: Wednesday, April 04, 2001 4:02 PM
To: NT Developers Interest List
Subject: [ntdev] Re: [Re: [RE: How to disable dual cpu automatically
before launchin g an application]]

>Try starting CMD.EXE, setting it’s affinity, and then launching your app
>from within that window.

how to set affinity of cmd.exe ?

TaskMgr, right click on cmd.exe, Set Affinity.

In right click. Only priorityes are there. No affinity.

Regards,
Satish K.S


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Oh. Good point. War over? I apologize for this unfortunate international
incident. Can I have my spy plane back now?

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
603 321 1032
WindowsNT Windows 2000 Consulting Services

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Wednesday, April 04, 2001 1:44 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

You’re not missing anything, given those parameters.
My point was that it is worth including a C++ runtime when to port C++ code
to C
would require many hours of work translating classes and C++ additions to
straight
C. BUT, if the only thing you’re using is new/delete – it’s easier to just
replace those calls as appropriate – rather than going through a learning
curve
of how to get C++ running in the kernel. I don’t take any particular
viewpoint as
to whether “C++ in the kernel is bad and evil” or otherwise – each case
should be
judged on its own pros/cons. I envisioned a C++ runtime dragging in a whole
bunch
of runtime code that was not likely to be used (when the only extensions
used are
new/delete) – and usually that does not help efficiency. There’s also the
question of support – I’d rather support my own code, not someone else’s
runtime
– It’s hard enough dealing with bugs in the kernel, MS runtime bugs, let
alone
another 3rd party’s – but that comes down to personal preference.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, April 04, 2001 10:16 AM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

I guess I’m missing how an inlined new or delete that directly translate to
ExAllocate/ExFree functions are ‘much [less] efficient’. But I think this
will degenerate (or perhaps now has,) into the “C++ in the kernel is Bad
and Evil” religious dispute.

-----Original Message-----
From: Paul Bunn [mailto:xxxxx@UltraBac.com]
Sent: Wednesday, April 04, 2001 1:09 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

Easiest approach is to remove new/delete dependency by using the relevant
alloc/free routines per the environment used.
This will be much more efficient anyway.


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Mark, you are tempting me to start a “new and delete in the kernel is Bad
and Evil” religious dispute. Please stop it.
-DH
----- Original Message -----
From: “Roddy, Mark”
To: “NT Developers Interest List”
Sent: Wednesday, April 04, 2001 1:04 PM
Subject: [ntdev] RE: compiling in cpp file

> Yeah, 'cause like I said, there is NO ZERO NADA kernel c++ runtime support.
> At the top of the list of ‘no kernel runtime support’ would be ‘new’ and
> ‘delete’. Just grab my or numega’s kernel c++ runtime (or is that rumtime)
> library.
>
>
> Mark Roddy
> xxxxx@hollistech.com
> www.hollistech.com
> 603 321 1032
> WindowsNT Windows 2000 Consulting Services
>
>
>
> -----Original Message-----
> From: John Hirschi [mailto:xxxxx@SonicWALL.com]
> Sent: Wednesday, April 04, 2001 12:50 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: compiling in cpp file
>
>
> It seems to me that the code written in the cpp file uses new and
> delete, but that’s the extent of the “cpp-ness” of the code. There are
> no classes, etc., just the use of new and delete. Do I still need to
> use the C++ kernel runtime library?
>
> Thanks,
> John
>
> -----Original Message-----
> From: Roddy, Mark [mailto:xxxxx@stratus.com]
> Sent: Wednesday, April 04, 2001 10:39 AM
> To: NT Developers Interest List
> Subject: [ntdev] RE: compiling in cpp file
>
>
> You have to be very careful about C++ runtime support. The fact that you
> have an unresolved reference to the global delete operator indicates
> that
> your .cpp file assumes the existence of C++ runtime support not provided
> by
> the NT kernel programming environment.
>
> That’s the bad news, the good news is that there is help, and its free.
> See
> my website resource page for a free C++ kernel runtime library. Also
> Numega
> (www.compuware.com) has a similar package, also free.
>
> Mark Roddy
> xxxxx@hollistech.com
> www.hollistech.com
> 603 321 1032
> WindowsNT Windows 2000 Consulting Services
>
>
>
> -----Original Message-----
> From: John Hirschi [mailto:xxxxx@SonicWALL.com]
> Sent: Wednesday, April 04, 2001 12:33 PM
> To: NT Developers Interest List
> Subject: [ntdev] compiling in cpp file
>
>
> I need to compile a .cpp file into my Win2k intermediate driver. Is
> this possible? It compiles fine, but when it starts to link I get a
> bunch of errors, numero uno is “unresolved external symbol : void
> __cdecl operator delete(void *)”. What do I need to do to get this to
> link together?
>
> Thanks,
> John
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@sonicwall.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@syssoftsol.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hey, this is C++, not assembler. Just override new and delete with your own
methods. No big deal!

Alberto.

-----Original Message-----
From: Dave Harvey [mailto:xxxxx@syssoftsol.com]
Sent: Wednesday, April 04, 2001 2:48 PM
To: NT Developers Interest List
Subject: [ntdev] RE: compiling in cpp file

Mark, you are tempting me to start a “new and delete in the kernel is Bad
and Evil” religious dispute. Please stop it.
-DH
----- Original Message -----
From: “Roddy, Mark”
To: “NT Developers Interest List”
Sent: Wednesday, April 04, 2001 1:04 PM
Subject: [ntdev] RE: compiling in cpp file

> Yeah, 'cause like I said, there is NO ZERO NADA kernel c++ runtime
support.
> At the top of the list of ‘no kernel runtime support’ would be ‘new’ and
> ‘delete’. Just grab my or numega’s kernel c++ runtime (or is that rumtime)
> library.
>
>
> Mark Roddy
> xxxxx@hollistech.com
> www.hollistech.com
> 603 321 1032
> WindowsNT Windows 2000 Consulting Services
>
>
>
> -----Original Message-----
> From: John Hirschi [mailto:xxxxx@SonicWALL.com]
> Sent: Wednesday, April 04, 2001 12:50 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: compiling in cpp file
>
>
> It seems to me that the code written in the cpp file uses new and
> delete, but that’s the extent of the “cpp-ness” of the code. There are
> no classes, etc., just the use of new and delete. Do I still need to
> use the C++ kernel runtime library?
>
> Thanks,
> John
>
> -----Original Message-----
> From: Roddy, Mark [mailto:xxxxx@stratus.com]
> Sent: Wednesday, April 04, 2001 10:39 AM
> To: NT Developers Interest List
> Subject: [ntdev] RE: compiling in cpp file
>
>
> You have to be very careful about C++ runtime support. The fact that you
> have an unresolved reference to the global delete operator indicates
> that
> your .cpp file assumes the existence of C++ runtime support not provided
> by
> the NT kernel programming environment.
>
> That’s the bad news, the good news is that there is help, and its free.
> See
> my website resource page for a free C++ kernel runtime library. Also
> Numega
> (www.compuware.com) has a similar package, also free.
>
> Mark Roddy
> xxxxx@hollistech.com
> www.hollistech.com
> 603 321 1032
> WindowsNT Windows 2000 Consulting Services
>
>
>
> -----Original Message-----
> From: John Hirschi [mailto:xxxxx@SonicWALL.com]
> Sent: Wednesday, April 04, 2001 12:33 PM
> To: NT Developers Interest List
> Subject: [ntdev] compiling in cpp file
>
>
> I need to compile a .cpp file into my Win2k intermediate driver. Is
> this possible? It compiles fine, but when it starts to link I get a
> bunch of errors, numero uno is “unresolved external symbol : void
> __cdecl operator delete(void *)”. What do I need to do to get this to
> link together?
>
> Thanks,
> John
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@sonicwall.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@stratus.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@syssoftsol.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,
I think some of the libraries that are required to link with are missing /
not mentioned.
"unresolved external symbol : " - this Linker error occurs usually when a
required library
is missing. check out for the library required by ur functions.

Wish u good luck,
Ashok.

*************************************
K.V.S.Ashok Kumar,
Systems Engineer - Microsoft labs,
Network & Systems S/W group,
E&I Solutions, Wipro Technologies,
Hi-Tech City, Madhapur,
Hyderabad.
Ph: +91-40-6565363(D)
Fax: +91-40-3119801
E-mail : xxxxx@wipro.com
visit us at: http://www.wipro.com
“Success is the ability to go from one failure to
another with no loss of enthusiasm” - Churchill
*************************************

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John Hirschi
Sent: Wednesday, April 04, 2001 10:03 PM
To: NT Developers Interest List
Subject: [ntdev] compiling in cpp file

I need to compile a .cpp file into my Win2k intermediate driver. Is
this possible? It compiles fine, but when it starts to link I get a
bunch of errors, numero uno is “unresolved external symbol : void
__cdecl operator delete(void *)”. What do I need to do to get this to
link together?

Thanks,
John


You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com