hello!
i'm using WinXP PRO and i would like to insert data from c code to mysql
database. i installedDEV-C++ 4.9.7.0 version, devpack 5.0.5, and mysql5.1
server. icreate the libmysql.a file with reimp and dlltool, and sopy to
devcpp/lib directory. I copy libmysql.dll to windows/system32. in liker option
i wrote -lmysql and in include libraries the dev-cpp/include/mysql path.
i check the libmysql.a file it contains mysql_init@4 but when i compile my
program i have an error message:
undefined reference to `mysql_init@4'
Could yuo help me?
Thank you: Zelena György
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Post the whole "Compile Log" text. Post it with code mark-up, otherwise it
will get garbled - use the preview pane below the composition box to see the
wysiwyg version of your text, you should get somethinglike this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Like I said; post the log in code mark-up, and check the formatting with the
preview; close but no cigar! ;-) Never mind; no one leshe has got it right
since the formatting feature was added either!
in compiler options i wrote (into Add these comand into linker command
line): -lmysql
Yet if you look at the command line in the Compile Log, you'll see that
option does not appear. The problem is that The "Tools->Compiler options"
dialog sets values that are applied to new projects. Once you have created a
project, most of those options are ignored. You need to add project specific
options to the project options dialog (Project->Project options). This is a
similar dialog, but for the current project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello!
i'm using WinXP PRO and i would like to insert data from c code to mysql
database. i installedDEV-C++ 4.9.7.0 version, devpack 5.0.5, and mysql5.1
server. icreate the libmysql.a file with reimp and dlltool, and sopy to
devcpp/lib directory. I copy libmysql.dll to windows/system32. in liker option
i wrote -lmysql and in include libraries the dev-cpp/include/mysql path.
i check the libmysql.a file it contains mysql_init@4 but when i compile my
program i have an error message:
undefined reference to `mysql_init@4'
Could yuo help me?
Thank you: Zelena György
Post the whole "Compile Log" text. Post it with code mark-up, otherwise it
will get garbled - use the preview pane below the composition box to see the
wysiwyg version of your text, you should get something
like this
.my program from internet source:
the compile log:
in compiler options i wrote (into Add these comand into linker command line):
-lmysql
i have been working to solve this problem for several days but i think i
havent enough experience. (i'm a student and i'm vorking on my diploma work)
thank you for your help: Zelena György
Like I said; post the log in code mark-up, and check the formatting with the
preview; close but no cigar! ;-) Never mind; no one leshe has got it right
since the formatting feature was added either!
Yet if you look at the command line in the Compile Log, you'll see that
option does not appear. The problem is that The "Tools->Compiler options"
dialog sets values that are applied to new projects. Once you have created a
project, most of those options are ignored. You need to add project specific
options to the project options dialog (Project->Project options). This is a
similar dialog, but for the current project.
Dear cpns!
It works!!!!
Thank you for your help!! You save my life!
zelena György