[SOLVED] Compile Old Winamp Plugin

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post September 15th, 2010, 11:16 am

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
There's no place like 127.0.0.1, badass part is now it's ::1
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 15th, 2010, 11:16 am

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post September 15th, 2010, 10:13 pm

undefined reference to `GetSaveFileNameA@4'


Search Google for that error. There are many hits, one of them being another MS site.
How do you know when a politician is lying? His mouth is moving.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post September 16th, 2010, 8:47 pm

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.
There's no place like 127.0.0.1, badass part is now it's ::1
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post September 17th, 2010, 1:24 pm

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. ;)
The Beer Monocle. Classy.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 227 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.