Back to the month index |
Back to the list index
|
bamha mostafa (bamha@lifo.univ-orleans.fr)
Thu, 24 Apr 1997 15:19:48 +0200
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Guy Matz: "[mSQL] update error"
- Previous message: Ray Zimmerman: "Re: [mSQL] How to get mSQL version from Msql.pm"
- In reply to: Chris Lambrou: "[mSQL] How to get mSQL version from Msql.pm"
- Next in thread: Matthias Suencksen: "[mSQL] w3-msql/lite and big (>5 kB) variable values"
Message-Id: <335F5DF4.41C67EA6@lifo.univ-orleans.fr> Date: Thu, 24 Apr 1997 15:19:48 +0200 From: bamha mostafa <bamha@lifo.univ-orleans.fr> Subject: Re: [mSQL] Problems compiling programsChris Trown wrote:
>
> Hello all.
>
> I've been have a devil of a time compiling some programs on my Linux box.
> This may be an FAQ, but I just joined the list again and I can't find a working
> archive.
>
> The system this is running on is a Slackware 3.0 Linux box with kernel rev
> 2.0.29 and libc 5.4.23 and gcc 2.7.2.2. One should not that these same
> applications compile and run fine under HPUX 10.20. Both of these problems
> occur whether I am using 2.0B5 or B6. B6 seems to go into a tight loop now and
> then, but that's another question entirely.
>
> Whenever I try and compile a program, I get:
>
> blackhole:/home/ctrown/modems: gcc -c -g -I/usr/local/Hughes/include db_connect.c
> In file included from db_connect.c:5:
> /usr/local/Hughes/include/msql.h:116: warning: parameter names (without types) in function declaration
> /usr/local/Hughes/include/msql.h:117: warning: parameter names (without types) in function declaration
> /usr/local/Hughes/include/msql.h:130: parse error before `msqlDateToUnixTime'
> /usr/local/Hughes/include/msql.h:130: warning: data definition has no type or storage class
> /usr/local/Hughes/include/msql.h:131: parse error before `msqlTimeToUnixTime'
> /usr/local/Hughes/include/msql.h:131: warning: data definition has no type or storage class
>
> If I add -traditional to the makefile I get:
>
> gcc -c -g -traditional -I/usr/local/Hughes/include db_connect.c
> In file included from db_connect.c:5:
> /usr/local/Hughes/include/msql.h:130: parse error before `msqlDateToUnixTime'
> /usr/local/Hughes/include/msql.h:131: parse error before `msqlTimeToUnixTime'
> make: *** [db_connect.o] Error 1
>
> Any suggestions? I've looked at msql.h and I can't see a problem with it.
> This same header file and compiler is being used on both HPUX and Linux.
>
> Chris...
Hi, all
For the warnings and errors about msql.h, you've to include in the
msql.h file the following line : #include<time.h>
That's all what you should do.
Bamha...
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!
- Next message: Guy Matz: "[mSQL] update error"
- Previous message: Ray Zimmerman: "Re: [mSQL] How to get mSQL version from Msql.pm"
- In reply to: Chris Lambrou: "[mSQL] How to get mSQL version from Msql.pm"
- Next in thread: Matthias Suencksen: "[mSQL] w3-msql/lite and big (>5 kB) variable values"