link problem

Frank Heckenbach ih8mj at fjf.gnu.de
Fri Dec 12 09:42:43 CET 2003


mkhaldi at gosympatico.ca wrote:

> When I compile my module. First of all, I generate the interface
> with --interface-only flag. Then I generate implementation with
> --implementation-only flag. This way seems to be wrong. Actually,
> When I use this way, no Init_ModuleName symbol appears.
> 
> "gpc -c --implementation-only  testModule.p; nm -A testModule.o" gives :
>
> But When I use the normal compilation command line, I get this :
> 
> Another symbol appears : init_M

Try the attached patch.

> Is there another way to bypass this problem?

You could try compiling without and "-only" switch the 2nd time.
This will regenerate the gpi files, but shouldn't hurt.

Frank

-- 
Frank Heckenbach, frank at g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482  4DDC 117A 9773 7F88 1707
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpc.diff-implementation-only
Type: application/octet-stream
Size: 1096 bytes
Desc: not available
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20031212/5d19c114/attachment.obj>


More information about the Gpc mailing list