CD Burning - Lib Compilation pb

vbimport

#1

Hi everybody!

I’m trying to do a module to burn files on a CD using NeroAPI.
This module will be used be several others modules. So to test it , I’m trying to make :

  • 1 lib with the API definiton (like the NeroAPITest exemple)
  • 1 lib that define a class to use easily this API (this class could be modified or duplicated following the cases to implement)
  • and the exe that only have the main fonction to test my class…

so The 1st lib contains only the definition of IsoEntry, IsoHandle, isoiterator, isoTrack, RootIterator ans ReadCallback. The code is exactly the same that the code given in the NeroAPITest app. :slight_smile:

but when I compile this lib, I obtain link error messages : :confused:
VsnBurnNeroAPI.obj : error LNK2001: unresolved external symbol _NeroEraseCDRW
BurnNeroAPI.obj : error LNK2001: unresolved external symbol _NeroGetCDRWErasingTime
BurnNeroAPI.obj : error LNK2001: unresolved external symbol _NeroFreeMem
BurnNeroAPI.obj : error LNK2001: unresolved external symbol _NeroGetLocalizedWaitCDTexts
BurnNeroAPI.obj : error LNK2001: unresolved external symbol _NeroGetLastError
…\pcnt\lib\BurnNeroAPI.dll : fatal error LNK1120: 5 unresolved externals

Is anyone could help me please ? :bow:
I think this is just one compilation option, but I didn’t find where I was wrong!

Thanks in advance for your help!
Fpa


#2

Did you added NeroAPIGlue.lib library to the link options of your project settings?


#3

yes I did.

I tryed to compile with the option /nodefaultlib:“libcmt.lib” and it seems to be better…
I’m trying to compile my second lib now

other things to do ?

Thanks!