help with Visual C++

288 views
Skip to first unread message

Yi

unread,
Nov 4, 2009, 9:53:48 AM11/4/09
to google-sparsehash

I successfully built the sparsehashmap in Visual C++ 2008 using the
supplied .sln file. How do I use google/dense_hash_map in other C++
files? I tried

#include<google/dense_hash_map>

but I got the following error:

fatal error C1083: Cannot open include file: 'google/dense_hash_map':
No such file or directory

Could anybody help me?

Thanks in advance!
Yi

Craig Silverstein

unread,
Nov 4, 2009, 11:32:05 AM11/4/09
to google-s...@googlegroups.com
} but I got the following error:
}
} fatal error C1083: Cannot open include file:
} 'google/dense_hash_map': No such file or directory

You'll need to copy the google directory into your own project
directory tree. I don't know much about windows development; maybe
someone else can give a bit more detail if needed.

craig

Yi

unread,
Nov 5, 2009, 9:12:03 AM11/5/09
to google-sparsehash
Thanks Craig. It worked after I copied the directories to my project.
And I have to change

#include<google/dense_hash_map>

to

#include "google/dense_hash_map"

Yi

olive...@gmail.com

unread,
Jun 19, 2015, 12:18:53 PM6/19/15
to google-s...@googlegroups.com
Dont need to do that. you can just add the include files on your make file or probably on the CXXFLAGS

I just added the directory where google and sparsehash where on my make files with -I/path/to/include libraries/
Hope this helps

1971 powerChina

unread,
Jul 9, 2015, 8:53:07 PM7/9/15
to google-s...@googlegroups.com
this will be help you
http://sourceforge.net/projects/pwwhashmap/

在 2009年11月4日星期三 UTC+8下午10:53:48,Yi写道:
Reply all
Reply to author
Forward
0 new messages