- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have a problem after running my program. i found error after compiling
g++ -std=c++11 -Wall -fopenmp main.cpp -o main -D WITH_COUNTER -I C:\IntelPCM\pcm-master\x64\Release -L C:\IntelPCM\pcm-master -L C:\IntelPCM\pcmlib.so
The error listed below :
C:\Users\KhairiL\AppData\Local\Temp\ccOTct74.o:main.cpp:(.text+0x97b): undefined reference to `PCM::getInstance()'
C:\Users\KhairiL\AppData\Local\Temp\ccOTct74.o:main.cpp:(.text+0x991): undefined reference to `PCM::resetPMU()'
C:\Users\KhairiL\AppData\Local\Temp\ccOTct74.o:main.cpp:(.text+0xa32): undefined reference to `PCM::program(PCM::ProgramMode, void const*)'
C:\Users\KhairiL\AppData\Local\Temp\ccOTct74.o:main.cpp:(.text+0xa8d): undefined reference to `PCM::resetPMU()'
C:\Users\KhairiL\AppData\Local\Temp\ccOTct74.o:main.cpp:(.text+0xafa): undefined reference to `PCM::getUArchCodename(int) const'
collect2.exe: error: ld returned 1 exit status
I use Intel PCM running on Windows with gcc compiler.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hm... "Windows with gcc compiler": this combination has never been tested (not sure we can support it, you will definitely will run into other issues because in PCM source code Windows platform is identified by Microsoft Visual C++ compiler defines).
Roman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Roman,
Hm.., but can you explaine to me, how to solve this undefined reference problem?
Khairil

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page