programmer1337 Posted March 13, 2012 at 10:31 PM Report #443837 Posted March 13, 2012 at 10:31 PM Boas pessoal, tenho andado a pesquisar e as respostas que tenho encontrado não me têm sido mto favoraveis :X Estava a tentar compilar C com sqlite no devc++ em windows mas obtenho sempre o mesmo erro -> [Linker error] undefined reference to `sqlite3_open' #include <stdio.h> #include <stdlib.h> #include "sqlite3.h" int main(){ sqlite3 *db ; sqlite3_open( "teste.db", &db); system("PAUSE"); return EXIT_SUCCESS; } Será que alguem ja conseguiu esta proeza em windows? Cumprimentos
Baderous Posted March 13, 2012 at 10:37 PM Report #443838 Posted March 13, 2012 at 10:37 PM Tens de indicar algures nas opções do linker no Dev-C++ para ele linkar a biblioteca do SQLite.
programmer1337 Posted March 13, 2012 at 10:50 PM Author Report #443840 Posted March 13, 2012 at 10:50 PM :/ Não sei pk os separadores dentro do separador "Projecto" estão bloqueados :X :S sabes o pk de isto acontecer? :X
programmer1337 Posted March 14, 2012 at 03:15 PM Author Report #443930 Posted March 14, 2012 at 03:15 PM Problema resolvido! 😁 Obrigado!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now