Creation of static libs with MS VC++ Toolkit 2003
From: Edd (eddNOSPAMHERE_at_nunswithguns.net)
Date: 05/30/04
- Next message: Corey Murtagh: "Re: [OT] Re: Offshore Outsourcing"
- Previous message: Otto Wyss: "Tutorial and guidelines: A proposal for better OpenSource code (long message)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 May 2004 19:51:27 +0100
Hello,
I'm trying to create a static C library using the Microsoft Visual C++
Toolkit 2003. I'm hoping someone can help me with the necessary command line
options, as I'm not familiar with the VC++ system. I'm compiling my C code
files into object files with a command line similar to this:
cl /c /Tc somefile.c /O2 /Ot /Og /G7
This appears to work correctly, generating somefile.obj. I'm looking at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html
/_core_linker_reference.asp to find information on how to put several object
files into a .lib, but I can't see a way of doing this. The following
command line wants to link my objects into an executable:
link /OUT:somelib.lib somefile1.obj somefile2.obj
which isn't what I want as I get errors and so forth about not being able to
find the main() entry point.
I can't find the switch for library creation. Is there one, or should I be
taking a completely different approach?
Any help appreciated!
Edd
- Next message: Corey Murtagh: "Re: [OT] Re: Offshore Outsourcing"
- Previous message: Otto Wyss: "Tutorial and guidelines: A proposal for better OpenSource code (long message)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|