News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Errors trying to recompile a .dll from source with TDM-GCC 4.8.1

Started by c-gid89, October 13, 2018, 09:33:21 PM

Previous topic - Next topic

c-gid89

First of all, i apologise if this is in the wrong section but i've just joined these forums so i'm new haha.

I posted this on another forum with the regards to the program i use called "Rpg Maker 2003" but got no joy there so thought i'd ask around here. I'm trying to recompile an old .dll plugin for the sdk called "DynRPG" which allows c++ addons to be written as a .dll that add on to RPG Maker's Engine. Plugins for the latest DynRPG require to be compiled with the 4.8.1 version of TDM-GCC but the plugin i am trying to recompile was for an older version of the DynRPG sdk & was compiled with a different version of the compiler. I am trying to make it compatible with an OpenGL renderer plugin for DynRPG that was released recently but because different version compilers were used, the libstdc++-6.dll file that's generated & needed by with either plugin are different file sizes & thus are not interchangeable & render one of the other unable to load. Trying to recompile just always throws up these errors in Codeblocks:

https://imgur.com/a/S2JeJ2y

Quote||=== Build: Debug in rpgss (compiler: GNU GCC Compiler) ===|
C:\source\rpgss\graphics\Image.cpp||In member function 'void rpgss::graphics::Image::clear_sse2(rpgss::graphics::RGBA)':|
C:\source\rpgss\graphics\Image.cpp|284|error: expected '(' before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ')' before 'void'|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ';' before ')' token|
C:\source\rpgss\graphics\Image.cpp|286|error: 'burst2' was not declared in this scope|
||=== Build finished: 6 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

stahta01

Your image is not readable by me. And, it likely would not tell me much if I could read it.

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Edit: Finally was able to read some of the image; CB likely can not find the files. Confirm the paths to files are correct and the files exist.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

c-gid89

Ahhh i did not have all the required source files needed, fixed that now. It still won't compile so i'm at a loss now. The error log in Codeblocks says:

https://imgur.com/a/S2JeJ2y

Quote||=== Build: Debug in rpgss (compiler: GNU GCC Compiler) ===|
C:\source\rpgss\graphics\Image.cpp||In member function 'void rpgss::graphics::Image::clear_sse2(rpgss::graphics::RGBA)':|
C:\source\rpgss\graphics\Image.cpp|284|error: expected '(' before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ')' before 'void'|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ';' before ')' token|
C:\source\rpgss\graphics\Image.cpp|286|error: 'burst2' was not declared in this scope|
||=== Build finished: 6 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|




Biplab

Quote from: c-gid89 on October 14, 2018, 05:03:26 PM
Ahhh i did not have all the required source files needed, fixed that now. It still won't compile so i'm at a loss now. The error log in Codeblocks says:

https://imgur.com/a/S2JeJ2y

Quote||=== Build: Debug in rpgss (compiler: GNU GCC Compiler) ===|
C:\source\rpgss\graphics\Image.cpp||In member function 'void rpgss::graphics::Image::clear_sse2(rpgss::graphics::RGBA)':|
C:\source\rpgss\graphics\Image.cpp|284|error: expected '(' before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ')' before 'void'|
C:\source\rpgss\graphics\Image.cpp|284|error: expected primary-expression before ')' token|
C:\source\rpgss\graphics\Image.cpp|284|error: expected ';' before ')' token|
C:\source\rpgss\graphics\Image.cpp|286|error: 'burst2' was not declared in this scope|
||=== Build finished: 6 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|



There is a typo at end of line number 284.

Change it from
16) / 4;)
to
16) / 4);
Be a part of the solution, not a part of the problem.