Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » linking Win32 resource files (.rc)
linking Win32 resource files (.rc) [message #157869] Sun, 13 November 2005 12:18 Go to next message
Eclipse UserFriend
Originally posted by: sebastiano.bussi.libero.it

Hi guys,
I've been trying to compile/run an old Win32 GUI project (C + Win32 API
calls) on WinXP/eclipse 3.1.1/CDT 3.0.1/MinGW (latest 'current' from
www.mingw.org). I've imported my old files into a Managed Make C project.
After setting the appropriate library references, the project compiles
fine - however, it doesn't link the resource file, so the executable
doesn't work.

I've been able to create a working executable from the command line: with
windres, I compiled the .rc file to a coff file, then I linked all the .o
files automatically generated by eclipse with the coff file. However, I'd
like to be able to make eclipse perform this step automatically.

Does anybody know which options would allow to link in the resource file?
Re: linking Win32 resource files (.rc) [message #158042 is a reply to message #157869] Tue, 15 November 2005 14:00 Go to previous message
Eclipse UserFriend
Originally posted by: mblok.interecho.com

Hi,

Its probably not the best solution, but it works well enough for me

For mannaged project.
I've added in
"project properties" -> "C/C++ build"
in "Build steps" tab "Prebuild step" -> Command:
windres -I../../_wxWidgets_2.6.2_minGW/include -i ../src/resources.rc -o
resources.o

and in "Tool Settings" tab "GCC C++ linker" / "Miscellaneous" => "other
objects"
./resources.o

Marek Blok

Uzytkownik "sebastiano bussi" <sebastiano.bussi@libero.it> napisal w
wiadomosci news:1799869ec756e5724644d158d9c01437$1@www.eclipse.org...
> Hi guys,
> I've been trying to compile/run an old Win32 GUI project (C + Win32 API
> calls) on WinXP/eclipse 3.1.1/CDT 3.0.1/MinGW (latest 'current' from
> www.mingw.org). I've imported my old files into a Managed Make C project.
> After setting the appropriate library references, the project compiles
> fine - however, it doesn't link the resource file, so the executable
> doesn't work.
>
> I've been able to create a working executable from the command line: with
> windres, I compiled the .rc file to a coff file, then I linked all the .o
> files automatically generated by eclipse with the coff file. However, I'd
> like to be able to make eclipse perform this step automatically.
>
> Does anybody know which options would allow to link in the resource file?
>
>
>
Previous Topic:Import visual studio project
Next Topic:Debug
Goto Forum:
  


Current Time: Mon Jul 07 20:50:58 EDT 2025

Powered by FUDForum. Page generated in 0.05359 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top