[SOLVED] Compile Old Winamp Plugin

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Hi, I'm trying to modify an old Winamp plugin DLL that is written in C, but first I'm trying to compile it from the source code which is given HERE.

It has a really really old project file and I tried to run it in Visual Studio 2010, but that didn't work and I hate visual studio, so I'm trying with Bloodshed Dev C++, and it seems great, so far, but I'm getting this linker error...
[Linker error] undefined reference to `GetSaveFileNameA@4'

It has to do with how the plugin has a save file prompt and the GetSaveFileName being GetSaveFileNameW or GetSaveFileNameA depending on Unicode or ANSI.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

My question is, what the hell do I do to get the linker to recognize it? Do I have to edit some linker setting in Dev C++? I tried including Commdlg.h and some other junk, but I have no clue what I need to do.

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

undefined reference to `GetSaveFileNameA@4'


Search Google for that error. There are many hits, one of them being another MS site.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Okay, prior to posting this topic, I googled like a mad-man and I didn't deserve that. A microsoft site giving a realistic answer? :lol: But anyway, after googling for another 10 min, I stumbled on a cached version of a site which had it, but not very clearly, here is the solution for any poor sap which has the same error in the future...

  1. Go to Project => Project Options (Ctrl + P)
  2. Go to the Parameters tab.
  3. In the "Linker" text area, append "-lComdlg32".
  4. Save & Compile

Sad part is, I don't even need this anymore.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

PolishHurricane wrote:
  1. Go to Project => Project Options (Ctrl + P)
  2. Go to the Parameters tab.
  3. In the "Linker" text area, append "-lComdlg32".
  4. Save & Re-link

Fix'd that for you. ;)

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 137 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.