User forums > Using Code::Blocks

DLL compile error: no resources

(1/2) > >>

Sebastian Roll:
Hi all!

I try to produce a DLL from raknet sourcecode (raknet is a free multiplayer lib).
The only error I get is:

Windres.exe: no resources

I attached the resource .h/.res files in any place in C::B project-config I could found.
I get same error on compiling after using the Import-Wizard for Visula Studio 6.0 and .Net projects, which are provided by raknet.
Any ideas what to do?

cu, Sebastian Roll

sethjackson:
Doesn't Windres.exe only work with .rc files????? NOT .res????

tiwag:
you need to add the proper directory in
Project->Build options->Directories->Resource compiler

Sebastian Roll:
Thx for response.

Yes, You are right. It's a .rc file.

I have added the directory to Project->Build options->Directories->Resource compiler
Same error, though.

Sebastian Roll:
here are the file contents:

DLL.rc:


--- Code: ---// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#pragma code_page(1252)

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

--- End code ---


resource.h:


--- Code: ---//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by DLL.rc

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        101
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version