On 1/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > > Did you use the compiler flags given by apr-config? > > > > Try something like: > > > > `apr-config --cc` `apr-config --cflags --cppflags` -c lala1.c > > `apr-config --cc` `apr-config --cflags --cppflags` -c lala2.c > > `apr-config --cc` `apr-config --link-ld --libs` -o lala lala1.o > lala2.o > > > > Probably using g++ instead of gcc (aka `apr-config --cc`) works if you > > > need C++. > > I have tried using the flags specified by apr-config and the error still > occurs. > > > I guess you're using the older APR. > > I formerly met the same error with the older APR. > > I am using apr-1.2.2 and the code you suggested appears in the apr.h > include file, so I am guessing that it is not the problem. > > The line that is causing the problem is when I call: > > apr_sleep(apr_time_make(0, 100000)); > > Any other suggestions?
Can you try and reduce this to a simple test case (i.e. one .c file and an actual command you use to compile it) so that we can try to reproduce the problem? It's rather difficult to say what's wrong without seeing the code and the exact commands being used to build it. -garrett