Author Topic: Some help needed.  (Read 11251 times)

Uggis

  • Guest
Some help needed.
« on: November 14, 2009, 04:49:08 pm »
Hello!

I have been using codeblocks for one day now cuz dev cpp aint working realy good for me.
Iam using windows vista 32bit.

The problems:
Huge output size (i know there is thread about this but could i have more info?)
I want codeblocks to compile my program just for win32 without anything extra stuff.

Please post some info.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6026
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Some help needed.
« Reply #1 on: November 14, 2009, 05:01:41 pm »
Huge output size

hello, please give some more details about this.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Uggis

  • Guest
Re: Some help needed.
« Reply #2 on: November 14, 2009, 05:06:34 pm »
Code
#include <iostream>

using namespace std;

int main()
{
    return 0;
}

For this program:

Compiling: main.cpp
Linking console executable: bin\Debug\test.exe
Output size is 587.20 KB

Anything else you need?  :D

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: Some help needed.
« Reply #3 on: November 14, 2009, 05:44:16 pm »
Compiler name and version?
Release or debug? From folder would guess debug; try the release build.
If GCC, did you strip out the debug info?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Uggis

  • Guest
Re: Some help needed.
« Reply #4 on: November 14, 2009, 07:13:46 pm »
Compiler name and version?
Release or debug? From folder would guess debug; try the release build.
If GCC, did you strip out the debug info?

Tim S.

Compiler: GNU GCC Compiler
Debug, relase doesnt compile
What? Could you explain more?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: Some help needed.
« Reply #5 on: November 14, 2009, 11:31:55 pm »
This site is to support the IDE Code::Blocks for compiler only type support try another site.

http://www.mingw.org/wiki/Large_executables
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Some help needed.
« Reply #6 on: November 15, 2009, 08:02:10 pm »
If GCC, did you strip out the debug info?
What? Could you explain more?
You are complaing about size and seriously don't understand what "stripping symbols" means? Well - than you really shouldn't care about the size because everything you might try won't work anyways.

However what annoys me once more is that this has been discussed literally a million times in this forum even though it's not related to Code::Blocks. Thus this threads violates our forum rules two times: Not related to C::B and not searched before.

I am locking this topic now.
« Last Edit: November 15, 2009, 08:04:23 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ