Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: c-gid89 on October 13, 2018, 09:33:21 pm

Title: Errors trying to recompile a .dll from source with TDM-GCC 4.8.1
Post by: c-gid89 on October 13, 2018, 09:33:21 pm
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)) ===|
Title: Re: Timestamp errors trying to recompile a .dll from source with TDM-GCC 4.8.1
Post by: stahta01 on October 14, 2018, 12:28:31 am
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 (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.
Title: Re: Timestamp errors trying to recompile a .dll from source with TDM-GCC 4.8.1
Post by: 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)) ===|

(https://imgur.com/a/S2JeJ2y)

Title: Re: Timestamp errors trying to recompile a .dll from source with TDM-GCC 4.8.1
Post by: Biplab on October 14, 2018, 06:19:50 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)) ===|

(https://imgur.com/a/S2JeJ2y)

There is a typo at end of line number 284.

Change it from
Code: [Select]
16) / 4;)to
Code: [Select]
16) / 4);