User forums > Help

Linking .res file (in .dll)

(1/2) > >>

download123:
I tryed to work with an .res file and to link it in the projekt but there is trubel with it.
I first tryed to simply add the opt.res to the projekt and compile it...

then i get the errors:


--- Code: ---Compiling: main.cpp
Linking dynamic library: Miranda.dll
mingw32-g++.exe: .objs\opt.o: No such file or directory
Process terminated with status 1 (0 minutes, 2 seconds)

--- End code ---

whats wrong?

Defender:
Hello!
I'm glad, you mentioned this, because this is annoying me since 2 days.
If you add *.def file to the project (in my case), C::B still wants to create a *.o file from it, even if you unchecked the "Compile" option.
At link time it still wants to find the *.o file.

-- The only solution I know is, to remove the file from the project, and add a line to the linker options dialog, that makes it link.

Defender

download123:

--- Quote from: Defender on August 28, 2006, 03:19:33 pm ---add a line to the linker options dialog, that makes it link.

Defender

--- End quote ---

can you give an exampel for this?

Defender:

--- Quote from: download123 on August 28, 2006, 03:32:26 pm ---
--- Quote from: Defender on August 28, 2006, 03:19:33 pm ---add a line to the linker options dialog, that makes it link.

Defender

--- End quote ---

can you give an exampel for this?

--- End quote ---
Yup, try like this:
Remember to remove the file from the project OR uncheck both Compile and Link

[attachment deleted by admin]

download123:
if i try it like that

Linking dynamic library: Miranda.dll
.\opt.res: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)

bzw.
Linking dynamic library: Miranda.dll
opt.res: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)

Navigation

[0] Message Index

[#] Next page

Go to full version