Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: DLL and gcc

Author: Brian Kostick

Date: 11:06:01 12/30/04

Go up one level in this thread


On December 30, 2004 at 09:31:39, Christophe Drieu wrote:

>Hi, i'm just learning how to build a dll with gcc (mingw). It's work fine and i
>would like to know if (and how) it is posible to add version ressource to this
>dll ? I don't want to use Visual C++.
>
>Regards.


Christophe,

  I take a shortcut to make some information. For me I add a resource in Dev-C++
but I can show you the result which might help you.


resource header file:

/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */
/* DO NOT EDIT ! */

#ifndef tsunami_PRIVATE_H
#define tsunami_PRIVATE_H

/* VERSION DEFINITIONS */
#define VER_STRING	"0.1.1.1"
#define VER_MAJOR	0
#define VER_MINOR	1
#define VER_RELEASE	1
#define VER_BUILD	1
#define COMPANY_NAME	""
#define FILE_VERSION	""
#define FILE_DESCRIPTION	"Developed using the Dev-C++ IDE"
#define INTERNAL_NAME	""
#define LEGAL_COPYRIGHT	""
#define LEGAL_TRADEMARKS	""
#define ORIGINAL_FILENAME	""
#define PRODUCT_NAME	""
#define PRODUCT_VERSION	""

#endif /*tsunami_PRIVATE_H*/


resource script (.rc file)

/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */
/* DO NOT EDIT! */

#include <windows.h> // include for version info constants


//
// TO CHANGE VERSION INFORMATION, EDIT PROJECT OPTIONS...
//
1 VERSIONINFO
FILEVERSION 0,1,1,1
PRODUCTVERSION 0,1,1,1
FILETYPE VFT_APP
{
  BLOCK "StringFileInfo"
	 {
		 BLOCK "040904E4"
		 {
			 VALUE "CompanyName", ""
			 VALUE "FileVersion", ""
			 VALUE "FileDescription", "Developed using the Dev-C++ IDE"
			 VALUE "InternalName", ""
			 VALUE "LegalCopyright", ""
			 VALUE "LegalTrademarks", ""
			 VALUE "OriginalFilename", ""
			 VALUE "ProductName", ""
			 VALUE "ProductVersion", ""
		 }
	 }
  BLOCK "VarFileInfo"
	 {
		 VALUE "Translation", 0x0409, 1252
	 }
}


compile log:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\tsunami\Makefile.win"
Executing  make...
make.exe -f "C:\Dev-Cpp\Projects\tsunami\Makefile.win" all
windres.exe -i tsunami_private.rc --input-format=rc -o tsunami_private.res -O
coff
g++.exe wind.o wood.o rain.o fire.o water.o earth.o snow.o east.o west.o south.o
north.o mountian.o weather.o tsunami_private.res -o "tsunami.exe"
-L"C:/Dev-Cpp/lib" -s
Execution terminated
Compilation successful

Or maybe look at Dev-C++ if you have any interest.
http://www.bloodshed.net/devcpp.html

Good Luck,
BK



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.