The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on August 19, 2009, 03:34:53 AM

Title: Compiled C Code and use it as a lib
Post by: Farabi on August 19, 2009, 03:34:53 AM
I dont know if this is still relevant with assembler but I want to compile a C code and make it as a lib for MASM. Im lazy to direct translate it.
Title: Re: Compiled C Code and use it as a lib
Post by: 2-Bit Chip on August 19, 2009, 05:59:56 AM
This may or may not help you: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html
Title: Re: Compiled C Code and use it as a lib
Post by: MichaelW on August 19, 2009, 06:32:52 AM
I'm not sure that every detail is correct, but the example in the attachment appears to work OK. The library contains only a single C function, and I added to it a call to printf so I could determine how to use a library that accessed the CRT.