To all,
I have a library file (my own) to which I link two other library files.
I have compiled to .u and all 3 are in the current directory.
When I compile the main program file, I link to the 2nd and 3rd library
files. During the link process, I get the following error messages:
unicon -u "testutf8.icn" (in directory: /home/bruce/unicon/src)
Parsing testutf8.icn: ...
/home/bruce/unicon/bin/icont -c -u -O testutf8.icn /tmp/uni13907935
Translating:
testutf8.icn:
main
No errors
/home/bruce/unicon/bin/icont testutf8.u
Linking:
trace.icn: "functionname": inconsistent redeclaration
trace.icn: "trace": inconsistent redeclaration
Compilation finished successfully.
2 errors
My understanding was that you could link to the same u-code file
multiple times from different files. Any indications of what I am doing
wrong? Is it because I am linking to a file in the current directory and
not to a file in the IPATH variable?
STOP Press. I just did a recompile on all three library files and the
the main and it now gives no error. Moreover, I have tried updating the
original file (without changing code) and recompiling only one of the
additional library files and then the main file and still no errors.
This has now got me puzzled as to what may have been the problem.
STOP STOP Press: Documentation - I have just worked out the sequence
that has brought up the error. This may be helpful to those who
experience this in the future.
File 1 has two routines that can be used in multiple other areas. I have
already compiled this file to a u-code file. I extract the relevant
routines and place in their own file. I compile new file to u-code. I
replace the routines in the original file with a link command, but
forgot to recompile the original file. In another file, I insert a link
statement to the new file and recompile to get a new u-code file. I then
recompile the main file and get the above error message.
Fix, is to compile new library file, then all old library files that now
have the new link statement and then compile any main files that rely on
these.
Simple when you see it, so in this case just a silly mistake on my part.
regards
Bruce Rennie.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group