C++ Integration

View previous topic View next topic Go down

C++ Integration

Post  dannite on Thu Oct 16, 2008 9:41 am

I am writing some parts of a game engine in C++ and am having a hard time getting it to play nice with the existing C code. The problem comes when I include sio2.h. The compiler hates on it to the tune of 1995 errors. When I enclose my #include "..sio2.h" with " extern "C"{} " it knocks the errors back to 1754.

I'm sure it is something simple that will fix this, but I can't figure it out. any help would be awesome.

dannite

Posts : 2
Join date : 2008-10-07

View user profile

Back to top Go down

Re: C++ Integration

Post  matt on Thu Oct 16, 2008 1:10 pm

Change the file type of the cpp file where sio2 is used to sourcecode.cpp.objcpp. I don't see any other way with the current SIO2 implementation.

Matt

matt

Posts : 155
Join date : 2008-09-30

View user profile http://elfrun.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum