Re: First steps, first problem

Pigi <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <1733575.kxXLryx2pQ@topolinux>
Thanks! 
   The first test has worked ( kinda ).
I'll "open" new thread about them.

Pierluigi


  
On Saturday 20 July 2019 07:41:33 Mike Aubury wrote:

Welcome to the project! 
As far as I can tell, none of those are actually errors, they are all just warnings. 


For the update warnings I prefer to add a where 1=1
type thing so I know its deliberate. 






A lot of Linux distributions have recently added '-Wall' to the default c compiler options so things like the 
     A4GL_execute_sql
missing prototype is now showing up (I've been adding these back in, so it might be fixed in SVN already, if not, I'll add it later) 





If qp.4gl is a complete program, you should be able to


4glpc -o qp.4ge qp.4gl


And it should produce an executable. 




On Fri, 19 Jul 2019, 14:42 Pigi, <[email protected]> wrote:

Hi all, 
I've discovered this project in the last iiug bulletin and decided to give a try.
Compiled 1.5 from source and fixed some of my errors on environment.
 
Now I'm trying to compile a program and it's not working with following errors:
 
informix@myserver:~/develop/qp/src/eqpmain$ 4glpc qp.4gl
Warning : UPDATE with no WHERE clause @ line 2356
Warning : UPDATE with no WHERE clause @ line 2375
Warning : UPDATE with no WHERE clause @ line 2645
Warning : UPDATE with no WHERE clause @ line 2660
Warning : UPDATE with no WHERE clause @ line 3305
Warning : Error file is not empty - but I got no error
Check qp.warn for details
 
( don't look at UPDATE messages, I know there is no WHERE clause :) )
 
 
and looking at this last one:
 
informix@myserver:~/develop/qp/src/eqpmain$ cat qp.warn
qp.c: In function 'aclfgl_u_cursor':
qp.c:20599:10: warning: implicit declaration of function 'A4GL_execute_sql' [-Wimplicit-function-declaration]
A4GL_execute_sql(A4GL_get_ident("qp","s_u_cursor_2","qp_s_u_cursor_2"),0,0);
^
 
I can find this function in :
 
informix@myserver:~/develop/qp/src/eqpmain$ nm /home/informix/aubit4glbin/lib/libaubit4gl-1.5_1.so | grep A4GL_execute_sql
00000000000aeef1 T A4GL_execute_sql
 
so the question is: what I'm doing wrong ?
 
 
Thanks in advance
 
Pierluigi
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.