Results 1 to 2 of 2

Thread: Missing Gnu C installation

  1. #1

    Default Missing Gnu C installation

    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);

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,244

    Default Re: Missing Gnu C installation

    When you are going for developement, better install the Development Pattern.

    YaST > Software > Software Management. Then the Pattern item from the View button. Scroll down to Development and check at least Basic Development and maybe (it never hurts) C/C++ Development for installation.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •