Closed GoogleCodeExporter closed 9 years ago
Adding #include <stdio.h> to the include files will solve this on Linux but I
don't
know if that is the desired patch.
svutil.cpp
...
#ifdef WIN32
#include <windows.h>
#include <winsock.h>
#else
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#ifdef __linux__
#include <sys/prctl.h>
#endif
#endif
Original comment by richard....@cybox.com
on 20 Aug 2009 at 9:50
Fixed in 3.00 in svn.
Original comment by theraysm...@gmail.com
on 20 Aug 2009 at 10:44
Well that was very simple...
Thanks a lot!
Original comment by ajos1...@gmail.com
on 21 Aug 2009 at 9:52
Hi, I am having the same problem.
Please let me know how to fix this.
Thanks,
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/liblept -g -O2 -MT
svutil.o -MD
-MP -MF .deps/svutil.Tpo -c -o svutil.o svutil.cpp
svutil.cpp: In constructor ‘SVNetwork::SVNetwork(const char*, int)’:
svutil.cpp:323: error: ‘snprintf’ was not declared in this scope
Original comment by ricko...@gmail.com
on 5 Sep 2009 at 3:28
As Mr Richard hinted...
edit "viewer/svutil.cpp"
And... add in the line below at about line 35:
#include <stdio.h>
Original comment by ajos1...@gmail.com
on 6 Sep 2009 at 2:55
Thanks so much.
I do appreciate it.
Original comment by ricko...@gmail.com
on 6 Sep 2009 at 1:32
Why is this issue not fixed in 2.04 release?
Original comment by oca...@gmail.com
on 28 Jan 2010 at 10:53
I just ran into this issue too. It still exists in the featured download. SVN
trunk
checkout wouldn't compile at all (complaining about ..\config missing).
Original comment by r.sch...@gmail.com
on 12 May 2010 at 5:16
Original issue reported on code.google.com by
ajos1...@gmail.com
on 29 Jul 2009 at 2:15