Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Help / Re: New to //(* ... //*)
« Last post by cwmoser on March 17, 2023, 11:25:21 pm »
Interesting that you can remove the comments except for first line and it still compiles OK.
22
Help / Re: Compiler issues
« Last post by stahta01 on March 17, 2023, 04:46:23 pm »
Under tab projects; expand the project name Project

Right click on the source file main.c and select properties from the menu.
Select tab Build; checkmark compile leave link checked.
Click okay button
Rebuild project.

What my build log looks like
Code
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------

Cleaned "Project - Debug"

-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------

gcc.exe -Wall -g  -c H:\devel\cb_projects\test\Project\main.c -o obj\Debug\main.o
gcc.exe  -o bin\Debug\Project.exe obj\Debug\main.o   
Output file is bin\Debug\Project.exe with size 247.67 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
23
Help / Re: New to //(* ... //*)
« Last post by Miguel Gimenez on March 17, 2023, 02:22:08 pm »
Those are special comments from wxSmith, if you delete them wxSmith will not be able to update your source.
24
Help / New to //(* ... //*)
« Last post by cwmoser on March 17, 2023, 11:30:02 am »
Exactly what is going on here.

Example:

Code
    //(*Initialize(Test_GUI_4Frame)
    wxMenu* Menu1;
    wxMenu* Menu2;
    wxMenuBar* MenuBar1;
    wxMenuItem* MenuItem1;
    ..
   //*)

I note when I remove the comment tags and put an ordinary comment for "Initialize(Test_GUI_4Frame)"
that the program compiles without errors.
25
Help / Re: Compiler issues
« Last post by ConradBuff1 on March 17, 2023, 10:45:14 am »
Hi Tim,

Thank you for your prompt response.

I am running Code::Blocks version 20.03 on Windows 10. The compiler I use is the GNU GCC Compiler (Mingw) that was bundled with the install file (unsure of version number).

When I open a new project and attempt to build the "Hello World!" program, I receive the error messages "No such file or directory" and "error: no input files".

Build log:
Code
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------

Cleaned "Project - Debug"

-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------

gcc.exe  -o bin\Debug\Project.exe obj\Debug\main.o   
gcc.exe: error: obj\Debug\main.o: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I have already tried a few suggestions relating to the compiler's installation directory (manually selecting the folder, auto-detection. I received confirmation that the installation path was detected each time), but this was not successful.

Please let me know if you require anything further.
26
Help / Re: Compiler issues
« Last post by stahta01 on March 17, 2023, 10:00:47 am »
27
Help / Compiler issues
« Last post by ConradBuff1 on March 17, 2023, 09:03:39 am »
Hi, I'm having some trouble getting programs to build and compile. I've downloaded the .exe file with the inbuilt compiler but it doesn't seem to working correctly. Tried a number of suggestions others have made on the forum but these haven't worked.

Here's the build log:
-------------- Build: Debug in asdfasdf (compiler: GNU GCC Compiler)---------------

gcc.exe  -o bin\Debug\asdfasdf.exe obj\Debug\main.o   
gcc.exe: error: obj\Debug\main.o: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
Any help would be greatly appreciated.
28
Using Code::Blocks / How to compile C code without any libs as ARMv4 code?
« Last post by exit0 on March 16, 2023, 09:19:54 pm »
Hi, i'm new to CB and cross-compiling. I've somehow managed to install an ARM compiler on my Windows 10 installation (Mingw).
When i create an ARM Project i can only choose between some evaluation boards, but in fact i don't want to use one of them as i don't own them. I simply like to compile code written in pure C (without any libs) into ARMv4 assembly machine code which would run on an emulation/simulator.

Code
int main (void) {
return 0;
}


When i simply remove all the extra files/code that comes with one of the ARM projects i end up with
Code
||=== Build: default in compileTests (compiler: GNU GCC Compiler for ARM) ===|
ld.exe: warning||cannot find entry symbol reset_vector; defaulting to 00008000|
c:\program files\gnuarm\bin\..\lib\gcc\arm-none-eabi\7.3.1\..\..\..\..\arm-none-eabi\lib\crt0.o||In function `_start':|
(.text+0x104)||undefined reference to `__bss_start__'|
(.text+0x108)||undefined reference to `__bss_end__'|
c:\program files\gnuarm\bin\..\lib\gcc\arm-none-eabi\7.3.1\..\..\..\..\arm-none-eabi\lib\libc.a(lib_a-exit.o)||In function `exit':|
exit.c:(.text.exit+0x2c)||undefined reference to `_exit'|
||error: ld returned 1 exit status|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
29
Using Code::Blocks / There is a method to copy all functions names to clipboard?
« Last post by dkaip on March 16, 2023, 04:12:19 pm »
Hello.
I am trying to take hundreds of functions definition or names from a cpp file to clipboard.
There is an easy way to have all that function?

Thank you.
Jim.




30
Using Code::Blocks / Re: wx-config not effect
« Last post by stahta01 on March 16, 2023, 11:51:12 am »
To wieniawski: Please post your Operating System (OS) name?

Tim S.
Pages: 1 2 [3] 4 5 6 7 8 ... 10