User forums > Using Code::Blocks
Generation with Pelles C Compiler (Version 12.00.1) failed
ThierryD:
Ok, thank's ...
I just transfer this context to : https://github.com/tdechaize/Glaux
Thierry.
stahta01:
I have cloned the git repo; I think I will get to it on Friday or Saturday.
Tim S.
stahta01:
--- Quote from: stahta01 on January 09, 2025, 04:01:55 pm ---I have cloned the git repo; I think I will get to it on Friday or Saturday.
Tim S.
--- End quote ---
Did not see the problem with highly modified steps under 64 bit; will try 32 bit using closer to posted directions.
Edit: Did not change to closer to the directions, yet. But, 32 bit built okay for me. No idea why it failed for you. It should have failed more likely with me not following the directions. Now, I need to install the Compiler how the said to do it.
Tim S.
stahta01:
I suggest building without clean a few times in a row.
Edit: If the files that failed to build start building; I would look at an system anti-virus related issue.
I get the below on the second build.
--- Code: ----------------- Build: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------
Target is up to date.
Nothing to be done (all items are up-to-date).
--- End code ---
My setup info; I skipped the parts that were not needed to get the project to build (The resource compiler search paths for one.)
And, I changed a few things.
My CB Version info: svn-r13596
OS Info: Windows 10
I edited the project pre steps because I did not have grep in the path.
My Tool chain setting
I deleted all additional paths; and I copied MSVC 2017 because I had *no* 2020 to copy.
Build log; I see no real difference; but, I have felt tired for about 10 days now. Maybe someone else or you will see the difference
--- Code: ----------------- Clean: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------
Cleaned "GLaux - Release PELLES C"
-------------- Build: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\FONT.C /FoobjPELLESC32\Release\src\FONT.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\GLAUX.C /FoobjPELLESC32\Release\src\GLAUX.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\IMAGE.C /FoobjPELLESC32\Release\src\IMAGE.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\SHAPES.C /FoobjPELLESC32\Release\src\SHAPES.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TEAPOT.C /FoobjPELLESC32\Release\src\TEAPOT.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TK.C /FoobjPELLESC32\Release\src\TK.obj
src\SHAPES.C(598): warning #2229: Local 'x2' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x1' is potentially used without being initialized (or using a dangling value).
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKDIB.C /FoobjPELLESC32\Release\src\TKDIB.obj
src\SHAPES.C(598): warning #2229: Local 'x0' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(645): warning #2117: Old-style function definition for 'initdodec'.
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKFONT.C /FoobjPELLESC32\Release\src\TKFONT.obj
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TKDIB.C(410): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(345): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(302): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKIMAGE.C /FoobjPELLESC32\Release\src\TKIMAGE.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\VECT3D.C /FoobjPELLESC32\Release\src\VECT3D.obj
pocc.exe /nologo -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\XFORM.C /FoobjPELLESC32\Release\src\XFORM.obj
polink.exe /dll /nologo /LIBPATH:C:\PellesC\\lib\Win /LIBPATH:C:\PellesC\\lib /out:binPELLESC32\Release\GLaux.dll glu32.lib opengl32.lib advapi32.lib comdlg32.lib winmm.lib shell32.lib user32.lib kernel32.lib gdi32.lib objPELLESC32\Release\src\FONT.obj objPELLESC32\Release\src\GLAUX.obj objPELLESC32\Release\src\IMAGE.obj objPELLESC32\Release\src\SHAPES.obj objPELLESC32\Release\src\TEAPOT.obj objPELLESC32\Release\src\TK.obj objPELLESC32\Release\src\TKDIB.obj objPELLESC32\Release\src\TKFONT.obj objPELLESC32\Release\src\TKIMAGE.obj objPELLESC32\Release\src\VECT3D.obj objPELLESC32\Release\src\XFORM.obj /MACHINE:X86 /SUBSYSTEM:WINDOWS /MACHINE:X86
src\TK.C(580): warning #2241: The function 'GetVersionExA' is marked as deprecated.
src\TK.C(1659): warning #2215: Conversion from 'int' to 'unsigned char'; possible loss of data or unexpected result.
src\TK.C(1826): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1825): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1965): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2015): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2044): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2045): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2046): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2049): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2442): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TK.C(2441): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TKFONT.C(13655): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13651): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13648): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13644): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13643): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13684): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13680): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13677): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13673): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13672): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13713): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13709): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13706): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13702): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13701): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
Creating object: binPELLESC32\Release\GLaux.exp
Creating library: binPELLESC32\Release\GLaux.lib
Output file is binPELLESC32\Release\GLaux.dll with size 1.02 MB
Process terminated with status 0 (0 minute(s), 3 second(s))
0 error(s), 40 warning(s) (0 minute(s), 3 second(s))
--- End code ---
ThierryD:
Hi Tim,
It's a good new. I try this by activate "build" many times, ans yes, at finish, DLL is generate (objective succeed).
I try also to reinstall Pelles C compiler, same constat : for each compile with "pocc" an error line appear into log of CB (and not with linkage with "polink" ?!?).
I try to "disconnect" of Internet (simply deactivate WiFi on Windows 11) and after (and only after) deactivate my antivirus (BitDefender), and retry to generate DLL of GLAUX, same result : I [re]do click on "Build" to finalize the generation ...
For 64 bit generation with Pelles C, not only position flag /MACHINE:X64 during linkage, but also add an new define during compilation "_M_AMD64" (I forget this add on "initial" repository).
I have also "Advanced System Care" installed on my configuration. Tomorrow, I try to desinstall this to see if this is a cause of problem.
Last try, generate target of CB project without subdirectories, directly to "root" project.
But, I don't understand why use of "pocc" seems provoke an error into CB (on my environment ...), and if I use this tool into "command console", all succeed ...
Thank's for your research, result it's interesting.
Thierry.
NB : About MSVC, you can install "very free" version from Microsoft : Visual Studio 2022 "Community", if you want.
Yes, it's not "professional" version, but this "do the job" (with C compiler, but also C++ compiler) with last SDK Windows (Windows Kit 10) mandatory. For me, it's OK.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version