So im trying to use nanodbc to implement odbc communication in a c++ application I am currently writing.
I inserted into my project folder the latest release of nanodbc source and header of nanodbc. It compiled but warned me of
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Running the application I get the following error:
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
GDB exited with code 03, breakpoint was set to main.
Things I've tried
1) Compiling nanodbc as a .so and linking it
2) Different versions of nanodbc
Environment
-
nuwen's mingw distro
-
gcc 5.1 Target: x86_64-w64-mingw32
-
Windows 7
I'm open to suggestions but we are trying to avoid purchasing licenses for Visual Studio thus somewhat removing ADO.net from the equation, and secondly targeting my application to a *nix environment is also out of the question due to administration/maintenece reasons. I'm currently attempting SOCI as an alternative odbc wrapper.
Makefile
FLAGS = -Wall -std=c++11 -g
LDFLAGS = -lws2_32 -lodbc32
udp_socket: udp_comm.o data_aquisition.o nanodbc.o main.o
g++ $(FLAGS) -o udp_socket.exe udp_comm.o data_aquisition.o nanodbc.o main.o $(LDFLAGS)
udp_comm.o: udp_comm.cpp
g++ $(FLAGS) -c udp_comm.cpp
data_aquisition.o: data_aquisition.cpp
g++ $(FLAGS) -c data_aquisition.cpp
nanodbc.o: nanodbc.cpp
g++ $(FLAGS) -c nanodbc.cpp
main.o: main.cpp
g++ $(FLAGS) -c main.cpp
clean:
@rm *.o`
Thanks for your time!
Aucun commentaire:
Enregistrer un commentaire