Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » windres and dll version
windres and dll version [message #138775] Mon, 14 February 2005 09:20 Go to next message
Eclipse UserFriend
Originally posted by: nik.cain.neuf.fr

hi,

I'd like to add version numbers to my dll's that I'm building with CDT
(& mingw). Normally windres converts the .rc file to a .o and that gets
compiled in with the other object files.

However, if I manually do
windres myresource.rc myresource.o
and then in eclipse do
refresh project
build

the resource object appears in the project, but the make gets messed up.
The subdir.mk file gets

myresource.o \
}

added into it, and make returns
subdir.mk:5: *** missing separator. Stop.


What are my options for getting this to work? I tried to add the .rc
type into file types so that I could maybe set the build command to
windres just for the rc file, but the C/C++ options didn't appear in the
list (after rightclicking the rc file and choosing options).

nik
Re: windres and dll version [message #138793 is a reply to message #138775] Mon, 14 February 2005 09:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nik.cain.neuf.fr

Nik wrote:
> hi,
>
> I'd like to add version numbers to my dll's that I'm building with CDT
> (& mingw). Normally windres converts the .rc file to a .o and that gets
> compiled in with the other object files.
>
> However, if I manually do
> windres myresource.rc myresource.o
> and then in eclipse do
> refresh project
> build
>
> the resource object appears in the project, but the make gets messed up.
> The subdir.mk file gets
>
> myresource.o \
> }
>
> added into it, and make returns
> subdir.mk:5: *** missing separator. Stop.
>
>
> What are my options for getting this to work? I tried to add the .rc
> type into file types so that I could maybe set the build command to
> windres just for the rc file, but the C/C++ options didn't appear in the
> list (after rightclicking the rc file and choosing options).
>
> nik

As usual, just the act of posting seems to unblock the brain a bit!

By moving the resource object out of the folder containing the source
sorted the dodgy make file, and then adding in the object file to the
'Other objects' box of the linker options got it into the project.

Still having to generate the object file by hand, but I can live with
that for a while...

apologies for the added noise...

nik
Re: windres and dll version [message #138959 is a reply to message #138793] Wed, 16 February 2005 08:34 Go to previous message
Eclipse UserFriend
Nik wrote:

> Still having to generate the object file by hand, but I can live with
> that for a while...

you could add windres via the project properties/Builders as an
additional builder and add the generated object file in the C/C++
Build/GCC C++ Linker/Miscellaneous/Other Objects
then you a) could do a clean build if the resource is changed or b)
could change the build options (if you have patience) to change to do a
clean build everytime you save the project

Greets,
Daniel
Previous Topic:Workspace in use
Next Topic:Import projcet from MS Visual C++ .NET to Eclipse/CDT
Goto Forum:
  


Current Time: Fri Sep 19 18:12:11 EDT 2025

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

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

Back to the top