memset errors with Metal C



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

memset errors with Metal C

Postby jimbob » Wed Jun 03, 2009 10:57 pm

I’m trying to initialize the Metal C environment with the following code, but get the following errors on the memset line.
ERROR CCN3275 IMIJWS0.METAL.SAMPLIB(MEM):6 Unexpected text ')' encountered.
ERROR CCN3045 IMIJWS0.METAL.SAMPLIB(MEM):6 Undeclared identifier ___MEMSET.
ERROR CCN3277 IMIJWS0.METAL.SAMPLIB(MEM):6 Syntax error: possible missing ')' or ','?
CCN0793(I) Compilation failed for file //'IMIJWS0.METAL.SAMPLIB(MEM)'. Object file not created.
Below is my code
#include <string.h>
#include <stdlib.h>
#include <metal.h>
     void mymtlfcn(void)  {
       struct __csysenv_s mysysenv;
memset ( &mysysenv, 0, sizeof ( mysysenv ) );
       mysysenv.__cseversion = __CSE_VERSION_1;
       mysysenv.__csesubpool = 129;
       mysysenv.__cseheap31initsize = 131072;
       mysysenv.__cseheap31incrsize = 8192;
       mysysenv.__cseheap64initsize = 20;
       mysysenv.__cseheap64incrsize = 1;
}
Any pointers on what’s causing this and how to fix it would be appreciated.
jimbob
 
Posts: 1
Joined: Wed Jun 03, 2009 10:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: memset errors with Metal C

 

Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post