NO

Author Topic: including libraries during compiling  (Read 2172 times)

kaledw

  • Guest
including libraries during compiling
« on: December 30, 2016, 11:35:24 PM »
I have some c code that I previously compiled on both a mac and windows pc.  The command I use is: 
cc -g -lm -o name name.c
I need to know how to include the options -g and -lm when doing a command-line compilation using the Pelles C compiler.  Any help would be appreciated.  Thanks.

Kelly

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: including libraries during compiling
« Reply #1 on: December 31, 2016, 02:48:44 AM »
Try first cc name.c
What errors you see after that?
May the source be with you