lcc win32 and winmm.lib

This is a discussion on lcc win32 and winmm.lib within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I used to use gcc, and to compile this windows program that includes mmsystem.h, it used the following command ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    108

    lcc win32 and winmm.lib

    Hello,

    I used to use gcc, and to compile this windows program that includes mmsystem.h, it used the following command line:

    gcc -mwindows firstevar.c -lwinmm

    Now, I tried using lcc, and it goes like the following:

    c:\lcclnk -subsystem windows -o journallier \lcc\lib\winmm.lib blah.o

    blah.o .text: undefined reference to '_timeGetDevCaps@8'
    blah.o .text: undefined reference to '_timeBeginPeriod@4'
    blah.o .text: undefined reference to '_timeSetEvent@20'
    blah.o .text: undefined reference to '_timeKillEvent@4'
    blah.o .text: undefined reference to '_getw'
    blah.o .text: undefined reference to '_ShellExecute'

    The question is, how do you properly link libraries in lcc? Did I miss something painstakingly obvious?

    Thanks in advance

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    76
    You should consider pellesC. It is heavily based on lcc, but its more up to date and has many improvements on lcc. Pellesc has also an active forum of its own IIRC.

    I cant help you with the problem, but i thought i just share this info since it might be usefull .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. winmm.lib
    By jaquenta in forum C Programming
    Replies: 10
    Last Post: 12-12-2008, 02:15 PM
  2. winmm.lib
    By herWter in forum Windows Programming
    Replies: 2
    Last Post: 07-13-2008, 04:30 AM
  3. Playing a Midi. (win32 console) (MSVC++)
    By knave in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 10:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21