User forums > Help
undefined reference to `ASIOGetChannels(long*, long*)
Qbert:
Hi,
I'm trying to compile samples of Steinberg Vst SKD with Code::Blocks and GNU GCC compiler.
I've problem on linking:
Linking executable: C:\Documents and Settings\ealfter\My Documents\Vst\pj\Win32GUI.exe
.objs\main.o(.text+0x11c):main.cpp: undefined reference to `ASIOGetChannels(long*, long*)'
.objs\main.o(.text+0x172):main.cpp: undefined reference to `ASIOGetBufferSize(long*, long*, long*, long*)'
.objs\main.o(.text+0x1c2):main.cpp: undefined reference to `ASIOGetSampleRate(double*)'
.objs\main.o(.text+0x22b):main.cpp: undefined reference to `ASIOSetSampleRate(double)'
.objs\main.o(.text+0x243):main.cpp: undefined reference to `ASIOGetSampleRate(double*)'
I think some ASIO lib are missing. Where can I find them? May I compile library too?
Thx
Qbert
mandrav:
Yes, you 're not linking with the library that contains those symbols. Unfortunately, I have no idea which library it is. A quick search just revealed that it's from "Steinberg Audio Stream I/O API" (hence the ASIO prefix).
Qbert:
Sorry for my silly question:
I figured out that ASIOGetChannels(long*, long*) and others items are referenced in asioxxxx.h and I included them in my pj.
I don't understand why that's not enough!? In SDK (from Steinberg) there arent lib in .a or .lib format.
:(
killerbot:
including a header just tells th compiler what the functions look like, etc ..
But the linker actually wants (assembly) code for it, either you create it yourself (including the implementation files in your project and compile them), or you link to a library (which contains the compiled code), or use an import library for a dll.
[EDIT] you can do without an import library for a dll, but then you have to GetProcAddress to get the functions
Qbert:
--- Quote from: killerbot on January 03, 2006, 04:29:02 pm ---
either you create it yourself (including the implementation files in your project and compile them)
--- End quote ---
How do I do that? What do I need?
Navigation
[0] Message Index
[#] Next page
Go to full version