trying to compile files for static lib, failes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tvnaidu
    Contributor
    • Oct 2009
    • 365

    trying to compile files for static lib, failes?

    I have 3 source files called xyz1.c xyz2.c xyz3.c, also include directory parallel to these files, I need to compile them and create a static lib with this command, not working, any issue?

    gcc -g -O2 -I/include -o util.lib xyz1.c xyz2.c xyz.c

    later I need to use util.lib to create dll, any command?.
Working...