Author Topic: Errors trying to recompile a .dll from source with TDM-GCC 4.8.1  (Read 332 times)

Offline c-gid89

  • Single posting newcomer
  • *
  • Posts: 2
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)) ===|
« Last Edit: October 14, 2018, 05:06:05 pm by c-gid89 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6359
    • My Best Post
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.
« Last Edit: October 14, 2018, 12:37:27 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline c-gid89

  • Single posting newcomer
  • *
  • Posts: 2
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)) ===|




Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
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
Code: [Select]
16) / 4;)to
Code: [Select]
16) / 4);
Be a part of the solution, not a part of the problem.