Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Missing Gnu C installation

$
0
0
openSUSE v13.1

I installed Gnu (gcc/g++) v4.8, 64bit. I tried to compile a simple program. It failed because it could not find the headers for functions like memset(), strlen(), etc., functions defined in <string.h>; there is no <string.h>.

What else needs to be installed to complete the installation?

Code:

$ g++ --version
g++ (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
Copyright (C) 2013 Free Software Foundation, Inc.

Code:

reader.cpp: In function ‘void* SockReader(void*)’:
reader.cpp:96:34: error: ‘memset’ was not declared in this scope
      memset(&mtbuff, 0, buffsize);


Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>