Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / December 2007

Tip: Looking for answers? Try searching our database.

linking problem in VC6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ho.Ho - 03 May 2006 10:44 GMT
I want to use downloaded libfftw3-3.dll in my vc6 project.

I created libfftw3-3.lib file by:
lib /machine:i386 /def:libfftw3-3.def

and added libfftw3-3.lib to be linked to my project.
(
Or I hope, I have done so:
I added 'libfftw3-3.lib' to 'Object/library modules' in
Project->Settings->Link folder and Set the path of the library in
Tools->Options->directories..
Linker also asks for the 'libfftw3-3.lib' if I delete it. That's why I think
it uses this file for linking
)

But building still fails:
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_free@4
gargle.obj : error LNK2001: unresolved external symbol
__imp__fftw_destroy_plan@4
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_execute@4
gargle.obj : error LNK2001: unresolved external symbol
__imp__fftw_plan_dft_r2c_1d@16
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_malloc@4

This is ar some 'pieces' of 'dumpbin /exports libfftw3-3.lib':
File Type: LIBRARY
    Exports
      ordinal    name
   _fftw_destroy_plan
   _fftw_execute
   _fftw_free
   _fftw_malloc
   _fftw_plan_dft_r2c_1d

Summary
         CF .debug$S
         14 .idata$2
         14 .idata$3
          4 .idata$4
          4 .idata$5
         10 .idata$6

What am I doing wrong????

I'll be very thankfull for any help. I'm new to windows programming and I'm
really lost.
Honza
Marcus Heege - 03 May 2006 15:03 GMT
You are likely missing
   extern "C"
in your function declarations.

Marcus

>I want to use downloaded libfftw3-3.dll in my vc6 project.
>
[quoted text clipped - 47 lines]
> really lost.
> Honza
tjmann - 07 Dec 2007 20:41 GMT
Go to the property page of the project -> Linker -> Input . In the "Additional Dependencies" space see that you have included all the libraries (in this case would be something like 'libfft3-3.lib libfft3f-3.lib libfft3l-3.lib"). Recompile, and it should work

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.