brown-cluster icon indicating copy to clipboard operation
brown-cluster copied to clipboard

Problem compiling on Windows 7

Open ameasure opened this issue 11 years ago • 8 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?

ameasure avatar May 15 '13 23:05 ameasure

I figured it out, it doesn't seem to work with newer versions of g++. It compiles fine with g++ 4.4.

ameasure avatar Aug 10 '13 18:08 ameasure

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?

luongtieumy avatar Oct 10 '13 05:10 luongtieumy

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?

ameasure avatar Oct 10 '13 15:10 ameasure

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 [email protected] 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.

luongtieumy avatar Oct 11 '13 04:10 luongtieumy

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.

ameasure avatar Oct 13 '13 19:10 ameasure

Thanks. If you can think out about this problem, please tell me.

Best regards,

On Monday, October 14, 2013 2:41 AM, Alexander Measure [email protected] 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.

luongtieumy avatar Oct 14 '13 00:10 luongtieumy

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!

osman-mian avatar Sep 22 '15 13:09 osman-mian

Maybe you can try to change '__STRING' to use '__STRINGIFY'

chuachilog avatar Jan 15 '23 04:01 chuachilog