scco@ur-tut.UUCP (Sean Colbath) (11/05/85)
I recently discovered the wonders of 'makefiles' when compiling sources
from net.sources, and decided that it would be a 'neat thing' to use them
with the Pascal programs I am writing. Since I was starting on a new
project, I made up a sample makefile, made a 'main.p' that had all the
procedures declared as external, and started writing procedures. However,
a problem ensued. The procedures (for obvious reasons) did not know about
any of the types I had declared in my main program. This included the
complex types in the parameters I was passing. The only thing I could
figure out to do was compile the main program/procedures as one large
program (grunge). Is there any way around this, or am I just out of luck?
-Sean Colbath
"Dave, why don't you take a stress pill and lie down for a while?"
UUCP: {allegra,decvax,ihnp4}!seismo!rochester!ur-tut!scco
BITNET: SCCO@UORVMscco@ur-tut.UUCP (Sean Colbath) (11/06/85)
In article <206@ur-tut.UUCP> I write: >I recently discovered the wonders of 'makefiles' when compiling sources >from net.sources, and decided that it would be a 'neat thing' to use them >with the Pascal programs I am writing. Since I was starting on a new >project, I made up a sample makefile, made a 'main.p' that had all the >procedures declared as external, and started writing procedures. However, >a problem ensued. The procedures (for obvious reasons) did not know about >any of the types I had declared in my main program. This included the >complex types in the parameters I was passing. The only thing I could >figure out to do was compile the main program/procedures as one large >program (grunge). Is there any way around this, or am I just out of luck? I have received several mail responses to my query, and I thank those people who took the time to write. However, I realized as I read the mail that I neglected to mention the operating system/pascal compiler I was using. I am *not* using 'pc', what I believe is the Berkley pascal compiler. I am using the pascal compiler distributed with the Pyramid OSx system. I checked the man page, and it also uses cpp to pre-process the program, but since I am a novice at C, I would appreciate any sample program that someone could whip up (in Pascal) that used Makefiles, .h files, and #include. Again, thanks to those people who were so prompt in replying to my posting. -Sean Colbath "Dave, why don't you take a stress pill and lie down for a while?" UUCP: {allegra,decvax,ihnp4}!seismo!rochester!ur-tut!scco BITNET: SCCO@UORVM