Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem compiling on Windows 7 #3

Open
ameasure opened this issue May 15, 2013 · 8 comments
Open

Problem compiling on Windows 7 #3

ameasure opened this issue May 15, 2013 · 8 comments

Comments

@ameasure
Copy link

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
Copy link
Author

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

@luongtieumy
Copy link

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?

@ameasure
Copy link
Author

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?

@luongtieumy
Copy link

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.

@ameasure
Copy link
Author

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.

@luongtieumy
Copy link

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.

@osman-mian
Copy link

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!

@chuachilog
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants