Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > GNU Pascal multiple object files problem
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 23rd October 04:44
southwesthustla
External User
 
Posts: 1
Default GNU Pascal multiple object files problem



Hi,
On compilation of several objects at once with MinGW gpc, does anyone
get the sorts of problems show below?

Thanks in advance

problem I have arises when I compile several Pascal object files into
one.

$ gpc -o ALL_PASCAL_OBJECTS.o pascal_object1.o pascal_object2.o
pascal_object3.o .... and so forth

it gives this error:

c:/mingw/lib/libmingw32.a(main.o):main.c.text+0x97): undefined
reference to `WinMain@16'
  Reply With Quote


 


2 23rd October 04:44
jonas maebe
External User
 
Posts: 1
Default GNU Pascal multiple object files problem



Try adding the "-c" parameter to prevent the linking step.


Jonas
  Reply With Quote
3 23rd October 04:44
southwesthustla
External User
 
Posts: 1
Default GNU Pascal multiple object files problem


Thanks Jonas, that has solved it.


-Frank
  Reply With Quote
Reply


Thread Tools
Display Modes




666