Well, I have a C ++ project, in which I use GCC + MinGW to compile that works perfectly. But I need to attach a binary file to my output file and I'm trying to do this per resource, but when I try to compile, it gives the following error:
C:/Program Files (x86)/CodeBlocks/…/ld.exe: i386:x86-64 architecture of input file ‘…\resources.res’ is incompatible with i386 output
Here is the file code resource.rc
#include "resource.h"
IDR_FILE BIN DISCARDABLE "../bin/File.dll"
Here is the code for the resource.h file
#define IDR_FILE 541
I tried the same thing in VC++ 2015 and it worked perfectly.