[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gspeaker installation



* On 2022 04 Oct 11:55 -0500, Gary L. Roach wrote:
> Hi all,
> 
> Is anyone familiar with gspeaker installation. This program has to be
> compiled from source code. I keep getting the following error when running
> make:
> 
> ***/usr/include/glib-2.0/glib/gtypes.h:29:2:error: #error "Only <glib.h> can
> be included directly."*
> 
> I have searched the web and have found references to the problem but could
> not find a solution that didn't require modification of the source code.

That's the only solution that I am aware of.  Later versions of glib are
designed to only allow the inclusion of the glib.h header file.  There
is one exception and it has to do with the g_printf (and related)
function which requires that glib/gprintf.h be included specifically.

I don't recall off-hand where I found this requirement in the
documentation, but maybe I got the same error you did on a package I
was porting forward some time back.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Attachment: signature.asc
Description: PGP signature


Reply to: