cmdiag 0.2 won't compile
Brought to you by:
tickbg
I'm using:
- CPU:
-- Intel Atom (i686)
- Software:
-- Archlinux
-- glibc 2.10.1-2
-- gcc 4.4.0-2
When typing $ make I get:
cmdiag.cpp:212: error: 'strstr' was not declared in this scope
So I added #include <string.h> to cmdiag.cpp
Now it compiles, but linking fails with:
undefined reference to `__sync_fetch_and_add_4'
Ok, seems as if the CFLAGS needed a fix.
I added:
PTYPE := $(shell uname -m)
after
ARCH := $(shell uname -s)
and
-march=$(PTYPE)
to the CFLAGS.
Now everything is working fine ;)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Add include to cmdiag-0.2/cmdiag.cpp file
#include <cstring>
This should help.