From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of abraxas abraxas
Sent: Thursday, November 30, 2006
11:12 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] PSDK
Windows.....
Hello everybody.
I want to do application with Bluetooth on Windows XP using ANSI C or
C++. But, I want to use Eclipse. I have install Eclipse 3.2.1 and CDT plugin.
But, I compile my code source show me some errors about libreries and headers
of Bluetooth APIs.
For example, this is a part of my code:
-------------------------------------------
#include <stdio.h>
#include <Winsock2.h>
#include <Ws2bth..h>
#include <BluetoothAPIs.h>
int main(int argc, char **argv) {
// -----------------
// Inicializar WinSock
WSADATA wsaData;
printf("Inicializando Winsock().\n");
int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult == NO_ERROR) {
printf("Error en WSAStartup()\n");
exit(1);
}
...
return 0;
}
-------------------------------------------
and, this is same errors:
*********************************
mingww32-make all
gcc -c Server.c -I"C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include"
In file included from C:/Program Files/Microsoft Platform SDK for Windows XP
SP2/Include/windef.h:166,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/excpt.h:20,
from C:/Program Files/Microsoft Platform SDK for Windows XP
SP2/Include/windows.h:157,
from C:/Program Files/Microsoft Platform SDK for Windows XP
SP2/Include/winsock2.h:47,
from Server.c:2:
...
*********************************
Reading, I watch that I need configure appropiatly the Platform SDK, but I
don't know where. I'm novice.
In Visual Studio, I can run my application perfectly, but I don't want use
Visual Studio.
Everyone to configure PSDK in Eclipse?
Thank you in advance.
Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx