* What does this mean?
@ 2003-06-24 10:15 Dave Gibelli
2003-06-24 20:54 ` Muthukumar Ratty
2003-06-24 23:03 ` Diego Novillo
0 siblings, 2 replies; 5+ messages in thread
From: Dave Gibelli @ 2003-06-24 10:15 UTC (permalink / raw)
To: gcc-help
$ make
gcc -Wall -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient
ocd-reader.c
/tmp/ccHxUIAV.o(.text+0xf6): In function `main':
: undefined reference to `mysql_init'
/tmp/ccHxUIAV.o(.text+0x122): In function `main':
: undefined reference to `mysql_real_connect'
/tmp/ccHxUIAV.o(.text+0x13b): In function `main':
: undefined reference to `mysql_error'
/tmp/ccHxUIAV.o(.text+0x1b03): In function `main':
: undefined reference to `mysql_real_query'
/tmp/ccHxUIAV.o(.text+0x1b49): In function `main':
: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
make: *** [ocd-reader] Error 1
My program compiles ok on another machine (Solaris) but on Linux I get the
above error messages. Any ideas appreciated.
Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What does this mean?
2003-06-24 10:15 What does this mean? Dave Gibelli
@ 2003-06-24 20:54 ` Muthukumar Ratty
2003-06-24 23:03 ` Diego Novillo
1 sibling, 0 replies; 5+ messages in thread
From: Muthukumar Ratty @ 2003-06-24 20:54 UTC (permalink / raw)
To: Dave Gibelli; +Cc: gcc-help
> $ make
> gcc -Wall -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient
> ocd-reader.c
> /tmp/ccHxUIAV.o(.text+0xf6): In function `main':
> : undefined reference to `mysql_init'
Assuming mysql_init is defined in libmysqlclient... gcc is not finding the
library.
> /tmp/ccHxUIAV.o(.text+0x122): In function `main':
> : undefined reference to `mysql_real_connect'
> /tmp/ccHxUIAV.o(.text+0x13b): In function `main':
> : undefined reference to `mysql_error'
> /tmp/ccHxUIAV.o(.text+0x1b03): In function `main':
> : undefined reference to `mysql_real_query'
> /tmp/ccHxUIAV.o(.text+0x1b49): In function `main':
> : undefined reference to `mysql_close'
> collect2: ld returned 1 exit status
> make: *** [ocd-reader] Error 1
>
> My program compiles ok on another machine (Solaris) but on Linux I get the
> above error messages. Any ideas appreciated.
>
> Dave
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What does this mean?
2003-06-24 10:15 What does this mean? Dave Gibelli
2003-06-24 20:54 ` Muthukumar Ratty
@ 2003-06-24 23:03 ` Diego Novillo
1 sibling, 0 replies; 5+ messages in thread
From: Diego Novillo @ 2003-06-24 23:03 UTC (permalink / raw)
To: Dave Gibelli; +Cc: gcc-help
On Tue, 2003-06-24 at 05:30, Dave Gibelli wrote:
> $ make
> gcc -Wall -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient
> ocd-reader.c
>
Try
$ gcc -Wall -I/usr/local/mysql/include -L/usr/local/mysql/lib ocd-reader.c -lmysqlclient
Diego.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: what does this mean?
2013-03-17 6:51 what " ishare
@ 2013-03-17 13:14 ` Jonathan Wakely
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2013-03-17 13:14 UTC (permalink / raw)
To: ishare; +Cc: gcc-help
On 17 March 2013 06:48, ishare wrote:
>
> what is this used for?
>
> __attribute__((__aligned__(1<<7)))
>
> thanks
It's documented at
http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Variable-Attributes.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* what does this mean?
@ 2013-03-17 6:51 ishare
2013-03-17 13:14 ` Jonathan Wakely
0 siblings, 1 reply; 5+ messages in thread
From: ishare @ 2013-03-17 6:51 UTC (permalink / raw)
To: gcc-help
what is this used for?
__attribute__((__aligned__(1<<7)))
thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-17 13:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24 10:15 What does this mean? Dave Gibelli
2003-06-24 20:54 ` Muthukumar Ratty
2003-06-24 23:03 ` Diego Novillo
2013-03-17 6:51 what " ishare
2013-03-17 13:14 ` Jonathan Wakely
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).