Comments (5)
I'm currently using hash_map, applying what I found here:
http://zitronensaft.blogspot.com/2008/02/using-hashmap-on-gcc.html
perhaps I think sparsehash is an interesting alternative
Original comment by [email protected]
on 18 Dec 2008 at 8:24
from sparsehash.
I don't know very much about windows -- I didn't even know it was possible to
use gcc
on windows with .sln files. I guess Code::Blocks is some magic program that
lets you
do that?
I'm not sure what your build environment is, but if you're using gcc on
windows, the
best solution is to run ./configure && make, just like in unix environments.
You'll
need cygwin or msys or some other unix-like environment to do that though.
If that's not practical, you'll need to modify the source code to change some
of the
_WIN32 stuff to look for _MSC_VER instead. I'll take a look at that when I get
a
chance, but I don't have a good environment for testing it.
Original comment by [email protected]
on 3 Jan 2009 at 1:41
- Changed state: Accepted
from sparsehash.
Original comment by [email protected]
on 3 Jan 2009 at 4:29
- Added labels: OpSys-Windows, Priority-Low, Type-Defect
from sparsehash.
It looks like all the WIN32 code in in src/windows/port.h, which is
appropriate.
That file is used by the .sln file, so presumably Code::Blocks is picking it up
from
there. You will need to hack src/windows/sparseconfig.h, as well as the other
files
in that directory, to be appropriate for windows. (Though if possible, you'd be
better off using './configure && make' and bypassing the src/windows directory
altogether.)
I haven't thought much about how to compile in a windows environment using a
non-msvc
compiler. If you'd like to make patches to make that work -- probably changes
to
windows/port.h and port.cc -- feel free to post them here! But I'm going to
close
the bug WontFix for now.
Original comment by [email protected]
on 5 Jan 2009 at 9:22
- Changed state: WontFix
from sparsehash.
Thank you for the answers.
I'm currently busy with other things, but maybe I try it sometime.
Original comment by [email protected]
on 6 Jan 2009 at 1:48
from sparsehash.
Related Issues (20)
- Memory Corruption HOT 2
- Compile fails on up-to-date Fedora 18 system HOT 2
- Insert deleted key into hashmap will cause size() be increased
- Cannot compile sparsehash-2.0.2 on Ubuntu 12.04LTS
- [PATCH] Fix gcc warning: format '%p' expects argument of type 'void*'
- news page specifies wrong date
- clang compile failure on FreeBSD HOT 3
- failure during "make" of sparsehash on mac osx 10.8.5 HOT 1
- Please implement a check for try in case libstdc++ implements c++11 where tr1 is merged into std HOT 4
- Latest version of xcode Command Line tools breaks sparsehash. HOT 6
- Fix the compile problem's on llvm(macosx) HOT 1
- Call resize to preallocate for memory does not work
- SPARSEHASH_COMPILE_ASSERT HOT 2
- Repair compilation with clang
- Installation fails check on Red Hat 6
- Installation fails at "make" step on Red Hat Linux 6
- make check fails with GCC 4.9 on Mac OS 10.10.1
- [PATCH] Make dense_hash_map work with non-default-constructible values HOT 1
- Is it thread safe for insertion of sparse hash table? HOT 1
- Google Code is dying
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparsehash.