![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Jan 2006
Location: Chile
Posts: 14
|
Hello.
I can't compile a single program in BC++ that uses alut.lib (alutinit, alutWAV...) because the compiler shows: [Linker Error] Unresolved external '_alutLoadWAVFile' referenced from C:\ OAL\UNIT1.OBJ I know that I included the OpenAL32.lib and alut.lib in the project, and that I changed the original libraries from the SDK made for Visual C++ with the COFF2OMF, but this doesn`t work. The strange thing is that the converted OpenAL32.lib (OMF format) is acepted by the BC compiler, but not the converted Alut.lib. So, Can anybody help me how can I make the BC compiler accepts the Alut.lib? (with an example, if possible) Thank you. |
|
|
|
|
|
#2 |
|
DevMaster Staff
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
|
It could be a name mangling issue. Make sure that the header files are being included as extern "C", either in your .cpp file or in the header file itself.
___________________________________________
Currently working at Sucker Punch reedbeta.com - OpenGL demos and other projects Luabridge - a lightweight, dependency-free C++/Lua binding library. CD Lite - an unobtrusive, minimal CD player application for Windows. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Jan 2006
Location: UK
Posts: 1
|
Hi,
I've just run into the same problem... Here's what to do implib -a openal32_bor.lib openal32.dll that sorts out the lib for the dll for the static library - go to the openal.org website and download the source for alut and build the library yourself. (In builder create a new project for a static library and add the .c files to it. Set up the path in the project to openal include. You'll run into some #define issues - but they are easy to resolve). Hope this helps |
|
|
|
|
|
#4 |
|
New Member
Join Date: Jan 2006
Location: Chile
Posts: 14
|
Maybe Itīs been some time since these post, but thanks for your help.
I also found an easier solution: Instead of using the alut.lib that comes with the OpenAL SDK, use the one that is in openal.org, but in the link that's for downlaoding the last version of ALUT. Then, I convert that alut.lib with the COFF2OMF and that converted file works. That's all. Bye. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|