Pagina 2 di 3 primaprima 1 2 3 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 22
  1. #11
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    Originariamente inviato da XWolverineX
    L'include non basta: devi anche linkare la necessaria libreria per usare il programma.
    #pragma comment (lib,"nomelibreria.lib")
    mmm non ho capito...
    ovvero devo inserire questo dopo l'include?
    grazie

  2. #12
    Utente di HTML.it L'avatar di XWolverineX
    Registrato dal
    Aug 2005
    residenza
    Prague
    Messaggi
    2,563
    Subito dopo l'include, si.
    Purtroppo non so il nome dlela libreria, ma non è difficile da capire (di solito è lo stesso nome dell'include)
    "Se proprio devono piratare, almeno piratino il nostro." (Bill Gates)

    "Non è possibile che 2 istituzioni statali mi mettano esami nello stesso giorno." (XWolverineX)

    http://xvincentx.netsons.org/programBlog

  3. #13
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    niente mi da sempre lo stesso errore...

  4. #14
    Originariamente inviato da ombra
    il bello che nell'errore dice che non trova la libreria sqlplus.hh
    ma c'è, ho installato tutto quello che c'era da installare, ho preso tutto dal sito mysql.com

    Sono perplesso :master:
    Puoi postare il path "assoluto" in cui hai la sqlplus.hh?

    P.S. Sbaglio o hai scaricato una versione vecchia di mysql++ (credo la 1.7) ?

  5. #15
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    codice:
    /usr/include/sqlplus/sqlplus.hh
    /usr/include/sqlplus/mysql++
    Ecco le librerie...
    Ho installato tutto!
    Non riesco a capire perchè non funziona...qualcuno ha qualche esempio, già utilizzato magari è sbagliato quello che ho trovato... VVoVe:
    Grazie

  6. #16
    prova a compilare così, al posto di "file.cc" mettici il nome del sorgente che vuoi compilare
    codice:
    g++ -I/usr/include/sqlplus -I/usr/include/mysql -c file.cc

  7. #17
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    sempre con lo stesso programma postato prima da me???

  8. #18
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    comunque ecco la robba che viene fuori

    codice:
    damiano@damiano:~/lavoro/c++/appoggio$ g++ -I/usr/include/sqlplus -I/usr/include/mysql -c Prova.cc
    In file included from /usr/include/c++/3.4/backward/iterator.h:59,
                     from /usr/include/sqlplus/resiter1.hh:6,
                     from /usr/include/sqlplus/row1.hh:10,
                     from /usr/include/sqlplus/compare1.hh:6,
                     from /usr/include/sqlplus/sqlplus.hh:13,
                     from Prova.cc:3:
    /usr/include/c++/3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples includesubstituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
    In file included from /usr/include/sqlplus/manip1.hh:14,
                     from /usr/include/sqlplus/vallist1.hh:6,
                     from /usr/include/sqlplus/row1.hh:11,
                     from /usr/include/sqlplus/compare1.hh:6,
                     from /usr/include/sqlplus/sqlplus.hh:13,
                     from Prova.cc:3:
    /usr/include/sqlplus/sql_query1.hh: In member function `SQLQuery& SQLQuery::update(const T&, const T&)':
    /usr/include/sqlplus/sql_query1.hh:171: error: `sql_use_compare' undeclared (first use this function)
    /usr/include/sqlplus/sql_query1.hh:171: error: (Each undeclared identifier is reported only once for each function it appears in.)
    In file included from /usr/include/sqlplus/sqlplus.hh:13,
                     from Prova.cc:3:
    /usr/include/sqlplus/compare1.hh: In member function `bool MysqlCmpCStr<BinaryPred>::operator()(const MysqlRow&) const':
    /usr/include/sqlplus/compare1.hh:26: error: `cmp2' undeclared (first use this function)
    /usr/include/sqlplus/compare1.hh:26: error: ambiguous overload for 'operator[]' in 'cmp1[index]'
    /usr/include/sqlplus/row1.hh:259: note: candidates are: const MysqlColData MysqlRow::operator[](int) const <near match>
    /usr/include/sqlplus/row1.hh:266: note:                 virtual const MysqlColData MysqlRow::operator[](unsigned int) const <near match>
    /usr/include/sqlplus/compare1.hh:26: error: there are no arguments to `func' that depend on a template parameter, so a declaration of `func' must be available
    /usr/include/sqlplus/compare1.hh:26: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use ofan undeclared name is deprecated)
    In file included from /usr/include/sqlplus/sqlplus.hh:57,
                     from Prova.cc:3:
    /usr/include/sqlplus/coldata3.hh: In member function `mysql_ColData<Str>::operator MysqlNull<T, B>() const':
    /usr/include/sqlplus/coldata3.hh:19: error: there are no arguments to `size' that depend on a template parameter, so a declaration of `size' must be available
    In file included from /usr/include/sqlplus/sqlplus.hh:58,
                     from Prova.cc:3:
    /usr/include/sqlplus/coldata4.hh: In member function `Type mysql_ColData<Str>::conv(Type) const':
    /usr/include/sqlplus/coldata4.hh:23: error: there are no arguments to `c_str' that depend on a template parameter, so a declaration of `c_str' must be available
    In file included from /usr/include/sqlplus/sqlplus.hh:71,
                     from Prova.cc:3:
    /usr/include/sqlplus/set3.hh: In member function `std::ostream& MysqlSet<Container>::out_stream(std::ostream&) const':
    /usr/include/sqlplus/set3.hh:23: error: there are no arguments to `begin' that depend on a template parameter, so a declaration of `begin' must be available
    /usr/include/sqlplus/set3.hh:24: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available
    Prova.cc: In function `int main()':
    Prova.cc:31: error: `setw' undeclared (first use this function)
    Prova.cc:51:2: warning: no newline at end of file
    damiano@damiano:~/lavoro/c++/appoggio$
    Che devo fare?? Stò provando in tutti i modi!!!


    Grazie 1000

  9. #19
    &Egrave; un problema di compatibilità delle librerie con la tua versione di gcc

    ti conviene installare l'ultima vesione della libreria

    mysql++-2.0.7.tar.gz
    http://tangentsoft.net/mysql++

    nel tar c'è un file README.unix che spiega come installare la libreria
    togli prima quella vecchia

  10. #20
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    670
    grazie mille
    Ora installo

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.