Re: esqlc generated code wont lint
Posted in 1996
In article <3253E38E.6031@rmi.net>, tom dorgan <amidasws@rmi.net> writes >howdy data partners > >whey is it on Solaris 5.3 using the sparcworks compiler and esqlc 4.0 >that my code lints clean but that generated by esqlc gives tons of >undeclared functions and too many initializer errors? > I've tried linting esqlc and lint does not proerly understand C. It warns about many things which are in actual fact correct. E.g. #include<...which vever file contains getpid definition> pid_t p; p=getpid(); Now getpid returns a pid_t and p is a pid_t but lint will still complain. Or try #include<...which vever file contains getpid definition> pid_t p; p = pid_t(1); Lint will complain again even though pid_t is normally and int/short and whatever it is a process id can always be 1 since that is the process id of init!! >Is it some options that esqlc uses for the c compiler or what. Are we >still using those anachronistic Berkleyisms, boys? > >I mean, I cant even compile your generated code using -g options >to the C compiler. > Probably because you need to specify the correct include directories since Informix obviously have their own include files installed somewhere under where Informix is installed. >Hoping for an answer which makes me feel better about this tool. > > >thanks, >tom. -- David Williams