From: John Kelso (kelso++at++nist.gov)
Date: 12/31/2003 07:21:28
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"
runnig 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 : Wed Dec 31 2003 - 08:07:19 PST