On Fri, 2004-01-23 at 05:13, Claudio Bley wrote: > The (GNU) linker usually only links in object files from libraries if > the object file provides some symbols which it has seen before. > > As a general rule, always list libraries as last options on the > command line, in the order by which they depend on each other: So easy... Must have always done this by default previously. > g++ -g -L../iniparser afp2text.o codeconvert.o -liniparser > > > Problem # 2 > > > > (gdb) run > > Starting program: /data/program/afp2text/afp2text > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x08048bbb in main (argc=1, argv=0xbffffbe4) at afp2text.cpp:99 > > 99 char parm_filename[ 255 ] = "/apps/parms/afp/definition"; > > (gdb) > > > > This is the very first line of the program. I even convert back to C > > code, same result. Any suggestions on what to try would be appreciated. > > I suppose a simple hello world C++ program runs fine? Is this also > related to the iniparser library? Can you supply a simple, runnable > example which exhibits the error? Besides, I'd say without seeing any > real code and a bit more information (command line arguments, GCC > version, system information) it's quite hard to give advice here. Found it, the definition of one of the automatic was too large. It crashed on startup. Reducing the size made it work. What is the limit? gcc 3.3.3 from Debian Unstable. -- Thanks KenF OpenOffice.org developer