Dear All I am using gpc 2.1 version. Is there any way to work out below code without changing the make file? please help me out as this is urgent to me. ******************************************************* 1)MakeFile PC=gpc PFLAGS= -DSOLARIS -I/home/kvsspl DemoMod3.o :DemoMod3.pas $(PC) -c $(PFLAGS) DemoMod3.pas ModDemo3.o :ModDemo3.pas $(PC) -c $(PFLAGS) ModDemo3.pas ModDemo3 :ModDemo3.o DemoMod3.o $(PC) -o ModDemo3 DemoMod3.o ModDemo3.o --object-path=/home/kvsspl ******************************************************* ******************************************************* 2)ModDemo3.pas program ModDemo3 (Output); import DemoMod3; begin xtra; end. ******************************************************* ******************************************************* 3)DemoMod3.pas module DemoMod3; export DemoMod3 = all; procedure xtra; end; procedure xtra; begin writeln('DemoMod3 function'); end; end. ******************************************************* Regards Hari __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
vanam srihari kumar wrote:
I am using gpc 2.1 version.
Is there any way to work out below code without changing the make file?
No, because the Makefile is wrong. It's missing a dependency. Try: ModDemo3.o :ModDemo3.pas DemoMod3.o If you use gpc --automake or the gp utility, you don't have to take care of depedencies yourself, but if you use hand-made Makefiles, you have to do this. Frank -- Frank Heckenbach, frank@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: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
participants (2)
-
Frank Heckenbach -
vanam srihari kumar