My sample.h is
My Sample.cpp is
My Question is when i compile this code in Linux platform Using g++ compiler My sample.o's Size is 1Kb.. But when the same code is compiled in Windows platform using VC++ Compiler , My sample.o's size is 42Kb..Can some of the experts can help me on this, to reduce the size in windows... Is there any proble with '#include <string>' in Windows platform.
Code:
#include <string>
namespace xxx
{
class abc
{
std::string m_name;
public:
void initialize();
};
};
Code:
#include <sample.h>
using namespace xxx;
void abc::initialize()
{
m_name = "Siva";
}
My Question is when i compile this code in Linux platform Using g++ compiler My sample.o's Size is 1Kb.. But when the same code is compiled in Windows platform using VC++ Compiler , My sample.o's size is 42Kb..Can some of the experts can help me on this, to reduce the size in windows... Is there any proble with '#include <string>' in Windows platform.
Comment