FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

C++ Integration

2 posters

Go down

C++ Integration Empty C++ Integration

Post  dannite 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

Back to top Go down

C++ Integration Empty Re: C++ Integration

Post  matt 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

http://elfrun.net

Back to top Go down

Back to top

- Similar topics

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