C++ Integration
2 posters
C++ Integration
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.
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
Re: C++ Integration
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
Permissions in this forum:
You cannot reply to topics in this forum