I recently updated my old version of Dev-C++ do the latest, and I've been having some troubles with compiling. I've noticed that if a Project name has spaces in it, and has either a icon or version info associated with it, it will throw all sorts of
[Build Error] [Warning] overriding commands for target `With'
errors in the Makefile.win. Any clue why this is happening? I can fix it by re-naming projects without spaces, but I'm curious as why it happens.
Also, I've noticed even with the basic Win32 *.exe is rather large (96K) even with full optimizations. Any clue what's going on?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Names with spaces in them are an issue for the pseudo-UNIX environment that is required for GCC to run. In the case of GCC, it uses the MingW environment.
GCC-3.2 trades executable size (and to some degree compile time) for execution speed. You can cut down on the size a bit by including -s as a compiler option. Make sure you keep track of doing that, as I would recommend you remove it if you want to do deugging.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe, and I am sure someone will correct me if I am wrong, that it is equivalent to the "strip" command, which is why I mumbled something about taking it out if you are going to try to do some serious debugging.
If you play around with some of the switches for the compiler, like -mcpu etc, for your particular processor, it can make a big difference in executable speed. It sure did at work for the P4's there. I think there is also stuff you can do for Athlon.
I know, more than you wanted to know...
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently updated my old version of Dev-C++ do the latest, and I've been having some troubles with compiling. I've noticed that if a Project name has spaces in it, and has either a icon or version info associated with it, it will throw all sorts of
[Build Error] [Warning] overriding commands for target `With'
errors in the Makefile.win. Any clue why this is happening? I can fix it by re-naming projects without spaces, but I'm curious as why it happens.
Also, I've noticed even with the basic Win32 *.exe is rather large (96K) even with full optimizations. Any clue what's going on?
Names with spaces in them are an issue for the pseudo-UNIX environment that is required for GCC to run. In the case of GCC, it uses the MingW environment.
GCC-3.2 trades executable size (and to some degree compile time) for execution speed. You can cut down on the size a bit by including -s as a compiler option. Make sure you keep track of doing that, as I would recommend you remove it if you want to do deugging.
Wayne
Thanks. The -s switch did chop size by one-half.
I believe, and I am sure someone will correct me if I am wrong, that it is equivalent to the "strip" command, which is why I mumbled something about taking it out if you are going to try to do some serious debugging.
If you play around with some of the switches for the compiler, like -mcpu etc, for your particular processor, it can make a big difference in executable speed. It sure did at work for the P4's there. I think there is also stuff you can do for Athlon.
I know, more than you wanted to know...
Wayne