From: John Kelso (kelso++at++nist.gov)
Date: 01/09/2004 14:59:29
Hi,
I never got a response to what I thought was a pretty easy question. Any
takers? Doh slaps or RTFM pointers accepted.
Thanks again,
-John
---------- Forwarded message ----------
Date: Wed, 31 Dec 2003 10:21:28 -0500 (EST)
From: John Kelso <kelso++at++nist.gov>
To: Performer Mailing List <info-performer++at++sgi.com>
Subject: C++ iostream and Performer file loaders
Hi,
For the last day I've been chasing a problem with a file loader I'm
writing. I finally got to the stage where I'm throwing out code until
something works, then finding out the one thing that caused it to break.
I'm running on SuSE Linux- gcc version 3.3.
This file loader works:
#include <Performer/pfdu.h>
extern "C" pfNode * pfdLoadFile_foobar (char *c_filename) {
return pfdLoadFile("esprit.pfb");
}
and this one does not- the only change is the first line:
#include <iostream>
#include <Performer/pfdu.h>
extern "C" pfNode * pfdLoadFile_foobar (char *c_filename) {
return pfdLoadFile("esprit.pfb");
}
The error I get is:
PF Warning: pfdFindConverterDSO() - Could not load DSO
for extension "foobar"
PF Warning: pfdLoadFile() - Unable to load file foo.foobar
because of problem finding pfdLoadFile_foobar
PF Notice: WARNING: could not load "foo.foobar"
running with PFNFYLEVEL=5, I get a little more detail:
13331 PF Debug: pfdFindConverterDSO() - trying
"./libpffoobar.so" version "(null)"
13331 PF Debug: dlopen said: ./libpffoobar.so: undefined
symbol: __dso_handle
13331 PF Debug: dlopen said: (null)
Any idea how I can fix this problem other than by not using iostream? I
suspect that this problem isn't specific to iostream, and might be based
on some more general principle that will haunt me later.
Thanks,
-John
This archive was generated by hypermail 2b29 : Fri Jan 09 2004 - 15:22:04 PST