leopatras / fglcm

MIT License
1 stars 0 forks source link

Editor shows function 'xxx' not found, when using Makefile based Project #1

Open susobhsugathan opened 2 years ago

susobhsugathan commented 2 years ago

Hi,

When editing a file which has IMPORT FGL xyz, then the editor will not show any warning when CALL a function inside the imported module.

But When we have multiple modules being linked through Makefile, the CodeEditor whows a warning that the function is not found.

Is there any way we can overcome this? err_editor

In the above screenshot, the warnings : the functions exist in a different 4gl file, and the module linking is done via Makefile.

leopatras commented 2 years ago

Hi, currently there isn't an option in the GUI for this. You could have a look in fglcm.4gl in the function "buildCompileCmd" (which does add the -Wall flag) and change it to your likes, see attached patch. HTH, Leo

Am 8/30/22 um 08:42 schrieb susobhsugathan @.***>:

Hi,

When editing a file which has IMPORT FGL xyz, then the editor will not show any warning when CALL a function inside the imported module.

But When we have multiple modules being linked through Makefile, the CodeEditor whows a warning that the function is not found.

Is there any way we can overcome this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

leopatras commented 2 years ago

Diff seems not to transmitted, here just the plain text of the diff

diff --git a/fglcm.4gl b/fglcm.4gl index e7df5b5..f4fa7a9 100644 --- a/fglcm.4gl +++ b/fglcm.4gl @@ -1668,11 +1668,11 @@ PRIVATE FUNCTION buildCompileCmd(dirname, compOrForm, cparam, fname) --we cd into the directory of the source IF file_on_windows() THEN LET cmd =

Am 8/30/22 um 08:42 schrieb susobhsugathan @.***>:

Hi,

When editing a file which has IMPORT FGL xyz, then the editor will not show any warning when CALL a function inside the imported module.

But When we have multiple modules being linked through Makefile, the CodeEditor whows a warning that the function is not found.

Is there any way we can overcome this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

susobhsugathan commented 2 years ago

Hi,

the above flag '-W-implicit' doesnt seem to work. Tried by compiling manually. I have tried some combinations, doesn't seem to work for my case.

Everytime it does show warning that many functions not defined, but the function exist in a different module which is linked via Makefile.

leopatras commented 2 years ago

Sorry , my fault , to switch off a compiler warning -Wno- must be used. So in your case the switch is -Wno-implicit

Regards, Leo

Am 8/30/22 um 11:49 schrieb susobhsugathan @.***>:

Hi,

the above flag '-W-implicit' doesnt seem to work. Tried by compiling manually. I have tried some combinations, doesn't seem to work for my case.

Everytime it does show warning that many functions not defined, but the function exist in a different module which is linked via Makefile.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.