public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/104962] New: Compilier can not find files to link a simple MYSQL app
@ 2022-03-17 2:33 murphy_535 at hotmail dot com
2022-03-17 2:39 ` [Bug c/104962] " pinskia at gcc dot gnu.org
2022-03-17 2:42 ` murphy_535 at hotmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: murphy_535 at hotmail dot com @ 2022-03-17 2:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104962
Bug ID: 104962
Summary: Compilier can not find files to link a simple MYSQL
app
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: murphy_535 at hotmail dot com
Target Milestone: ---
gcc client1.c -I"C:\Program Files\MySQL\MySQL Server 8.0\include"
-L"C:\Program Files\MySQL\MySQL Server 8.0\lib" -lmysqlclient
client1.c is taken from a textbook. It compiles in Visual Studio 2022 with no
problem once the libraries are set.
I am an inexperienced user of the gcc compiler.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/104962] Compilier can not find files to link a simple MYSQL app
2022-03-17 2:33 [Bug c/104962] New: Compilier can not find files to link a simple MYSQL app murphy_535 at hotmail dot com
@ 2022-03-17 2:39 ` pinskia at gcc dot gnu.org
2022-03-17 2:42 ` murphy_535 at hotmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-17 2:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104962
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is best asked on the mailing list gcc-help@gcc.gnu.org (or maybe even the
binutils mailing list since it is about ld not finding the libraries, GCC does
not control the linker).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/104962] Compilier can not find files to link a simple MYSQL app
2022-03-17 2:33 [Bug c/104962] New: Compilier can not find files to link a simple MYSQL app murphy_535 at hotmail dot com
2022-03-17 2:39 ` [Bug c/104962] " pinskia at gcc dot gnu.org
@ 2022-03-17 2:42 ` murphy_535 at hotmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: murphy_535 at hotmail dot com @ 2022-03-17 2:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104962
--- Comment #2 from James Murphy <murphy_535 at hotmail dot com> ---
Created attachment 52639
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52639&action=edit
client1.c
/*
* client1.c
*
*
* from Paul DuBois MySQL page 225
*
*
*
*/
#include <stdio.h>
#include <mysql.h>
#define def_host_name "localhost" /* host to connect to */
#define def_user_name "cpp" /* user name */
#define def_password "n6532l" /* user password */
#define def_db_name NULL /* database to connect to */
MYSQL *conn; /* pointer to connect handler */
int main (int argc, char *argv[])
{
conn = mysql_init(NULL);
mysql_real_connect ( conn, /* pointer to
connection handler */
def_host_name, /* host
to connect to */
def_user_name, /* user
name */
def_password, /* user
password */
def_db_name, /*
database to connect to */
0,
/* port (using default) */
NULL, /*
socket (use default) */
0
/* flags (none) */
);
mysql_close(conn);
exit(0);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-17 2:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 2:33 [Bug c/104962] New: Compilier can not find files to link a simple MYSQL app murphy_535 at hotmail dot com
2022-03-17 2:39 ` [Bug c/104962] " pinskia at gcc dot gnu.org
2022-03-17 2:42 ` murphy_535 at hotmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).