Re: [Opentnl-general] Compile error when making hello world.
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <ma...@ga...> - 2004-05-04 15:20:09
|
Try removing the stdafx.h line. It may be including the <new> header file which conflicts with that line in tnlTypes.h. Or you could grab the latest from CVS which should have the fix already in tnlTypes.h. - Mark Lucas Meijer wrote: > Hi, > > I'm using visual studio .net, and am getting a compile error when > trying to build the hello world tutorial on the website. > The sample code provided with in the download does compile. > > The error is in tnlTypes.h, and complains about a redefenition of the > new operator: > > \tnl\tnlTypes.h(39): error C2084: function 'void *operator > new(size_t,void *) throw()' already has a body > > I'm sure it's a project seting somewhere, but I can't figure out which > one. This is a win32 command line application, (winxp). I have no code > at all, I'm only including these: > > #include "stdafx.h" > #include "tnl.h" > #include "tnlEventConnection.h" > #include "tnlNetInterface.h" > #include "tnlRPC.h" > #include <stdio.h> > > Thanks, Lucas > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Opentnl-general mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opentnl-general |