gnupic: Re: [gnupic] Re: FreeBSD and gpsim


Previous by date: 8 Jan 2006 15:38:38 +0000 Re: [gnupic] one week with FreeBSD: PIC related, Xiaofan Chen
Next by date: 8 Jan 2006 15:38:38 +0000 Correction to gpsim examples, Chen Xiao Fan
Previous in thread:
Next in thread: 8 Jan 2006 15:38:38 +0000 Re: [gnupic] Re: FreeBSD and gpsim, Xiaofan Chen

Subject: Re: [gnupic] Re: FreeBSD and gpsim
From: "Scott Dattalo" ####@####.####
Date: 8 Jan 2006 15:38:38 +0000
Message-Id: <61495.71.139.22.47.1136734007.squirrel@71.139.22.47>

On Sun, 2006-01-08 at 15:56 +0800, Xiaofan Chen wrote:


> After some updates to the system, now gpsim is almost there but
> still I got one error. I am not so sure what is the reason.

<snip>

> ../src/.libs/libgpsim.so: undefined reference to
> `get_library_export(char const*, void*, char**)'

Hi Xiaofan,

The other day you said that you were having problems compiling the file
src/os_dependent.cc and that you made some changes to fix that. I suspect
those changes are causing the problem you're seeing. Would it be possible
to return os_dependent back to its unmodified state? I can then work with
you on resolving the conflicts there.

I believe at issue here is that dlerror() returns a const char * which at
some point is passed to another function as a plain (i.e. non-const) char
*. You may want to first try adding the key word const to the
'get_library_module()' function signature:

From:
void * get_library_export(const char *name, void *library_handle, char **
pszError)

To:
void * get_library_export(const char *name, void *library_handle, char **
const pszError)

This change needs to be made in two places: 1) src/os_dependent.cc, line
378 and in 2) src/modules.h, line 342

Scott

Previous by date: 8 Jan 2006 15:38:38 +0000 Re: [gnupic] one week with FreeBSD: PIC related, Xiaofan Chen
Next by date: 8 Jan 2006 15:38:38 +0000 Correction to gpsim examples, Chen Xiao Fan
Previous in thread:
Next in thread: 8 Jan 2006 15:38:38 +0000 Re: [gnupic] Re: FreeBSD and gpsim, Xiaofan Chen


Powered by ezmlm-browse 0.20.