Problem compiling on Windows 7
ameasure opened this issue · comments
I'm trying to compile on Windows 7 using g++ 4.7.2 and GNU Make 3.8.1. When I do I get the following errors:
C:\Users\ameasure\brown-cluster-master>make
g++ -Wall -g -o wcluster.o -c wcluster.cc
wcluster.cc: In function 'void repcheck()':
wcluster.cc:431:3: error: '__STRING' was not declared in this scope
wcluster.cc:432:3: error: '__STRING' was not declared in this scope
wcluster.cc: In function 'int main(int, char*)':
wcluster.cc:1072:3: error: '__STRING' was not declared in this scope
make: ** [wcluster.o] Error 1
Any idea what's going on?
I figured it out, it doesn't seem to work with newer versions of g++. It compiles fine with g++ 4.4.
I got the same problem. But when I installed MinGW with g++ 4.4.0, it can't compile and I get same errors:
C:\Users\luongtieumy2000\brown-cluster-master>make
g++ -Wall -g -o wcluster.o -c wcluster.cc
wcluster.cc: In function 'void repcheck()':
wcluster.cc:431: error: 'STRING' was not declared in this scope
wcluster.cc:432: error: 'STRING' was not declared in this scope
wcluster.cc: In function 'int main(int, char*)':
wcluster.cc:1072: error: '__STRING' was not declared in this scope
make: ** [wcluster.o] Error 1
Would you please show me how I can fix these error?
Did you change g++ 4.4.0 to be your default compiler? Type g++ --version on the command line, which version does it say it is?
Dear Alexander Measure,
I got this:
C:\Users\luongtieumy2000>g++ --version
g++ (GCC) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please give me how to fix error.
Thank you very much!
On Thursday, October 10, 2013 10:34 PM, Alexander Measure notifications@github.com wrote:
Did you change g++ 4.4.0 to be your default compiler? Type g++ --version on the command line, which version does it say it is?
—
Reply to this email directly or view it on GitHub.
I'm not sure why it isn't working for you. The only thing I can think of is that I might have done this in Ubuntu instead of on Windows.
Thanks. If you can think out about this problem, please tell me.
Best regards,
On Monday, October 14, 2013 2:41 AM, Alexander Measure notifications@github.com wrote:
I'm not sure why it isn't working for you. The only thing I can think of is that I might have done this in Ubuntu instead of on Windows.
—
Reply to this email directly or view it on GitHub.
I am trying to compile this on Windows7 and getting the same errors
'__STRING' was not declared in this scope
[Note] in expansion of macro 'define_str '
Please help!
Maybe you can try to change '__STRING' to use '__STRINGIFY'