I want to use native c++ code within my WindowsPhone 8 Application. For this purpose I did build a "Windows Phone Runtime Component" to wrap my c++ code. I simply compile my native code with visual studio when I compile the Runtime Component. This took some tweaking but Visual Studio is now compiling.
Now my native Code needs sqlite. For other platforms I was able to just compile sqlite3 with my native code and got it to run. But I just can't get it to work with Visual Studio. My native class looks like this: #include "Main.h" #include <sqlite3.h> #include <stdlib.h> #include <iostream> //visual studio needs additional imports for std #if defined(_MSC_VER) #include <time.h> #include <string> #endif void NativeClass::testDataBase() { //some sql stuff here } What I have tried: 1. My first Idea was to try to solve this like I did for iOS and android. I tried to include the sqlite header and .c files. I also tried all options and compiler flags listened here. When I do this with a Win32 project it compiles just fine. But when I try to compile it for my Runtime component I get a lots of errors belonging to lines like this: { "AreFileApisANSI", (SYSCALL)AreFileApisANSI, 0 }, And the Error is: Error 2 error C2065: 'AreFileApisANSI' : undeclared identifier 2. The Next idea was to just import the headers and Link the binaries. With all a lot of different errors and problems this keeps failing. Usually going back to the problem, that I'm not able to compile or find a working and for arm compiled lib. I'm asking for ways to solve this here. This could be a solution on how to get one of my approaches to work. Or it could be a completely different way to solve this. This problem is driving me crazy. I just can't get it to work. Any help would be appreciated. I'm working with Visual Studio 2013. And I have Windows running in Parallels on a Mac. Mit freundlichen Grüßen/Kind regards, Arne Fischer Mobile Developer let's dev GmbH & Co. KG Phone: +49 (0) 721-78 80 27 30 Fax: +49 (0) 721-78 80 27 31 Email: arne.fisc...@letsdev.de (PGP-Key:FD5FBCC8) Internet: http://www.letsdev.de Postanschrift/Mailing Address: Alter Schlachthof 23C 76131 Karlsruhe Germany Amtsgericht/Commercial Register: Mannheim - HRA 705058 Gesellschaftssitz/Registered Office: Karlsruhe Komplementär/General Partner: W & W Verwaltungsgesellschaft mbH Amtsgericht/Commercial Register: Mannheim - HRB 717324 Gesellschaftssitz/Registered Office: Karlsruhe Geschäftsführer/Managing Director: Christian Wack, Karl-J. Wack
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users