Original Post
so here's the code:
#include <windows.h>
#include <windowsx.h>
#include <mmsystem.h>
#include <iostream>
#include <string>
#include <ctime>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])
{
DWORD startime, endtime, lapsetime;
startime = timeGetTime() ;
string name = "Hello there, me.";
endtime = timeGetTime() ;
lapsetime = endtime - startime;
cout << "Time is for string printing is (fps): " << 1.0f/lapsetime << endl;
system("PAUSE");
return 0;
} here are the errors: c:\dev-c++\projects\c_test.o(.text+0x6a):c_test.cpp: undefined reference to timeGetTime@0' c:\dev-c++\projects\c_test.o(.text+0xa9):c_test.cpp: undefined reference to timeGetTime@0' I'm using Dev-C++ 4.01. The library directory (which holds the libwinmm.a) is already entered in compiler options. Yet I'm still getting these errors. Anyway idea why? Oh. I made this as a C++ console project. But don't worry I tried it as a Win32 Project and got the same errors [smile] [Edited by - Alpha_ProgDes on January 10, 2005 12:45:04 PM]