sgi

Inserting objects into hash table (C++)

为君一笑 提交于 2019-12-12 13:01:53
问题 This is my first time making a hash table. I'm trying to associate strings (the keys) with pointers to objects (the data) of class Strain. // Simulation.h #include <ext/hash_map> using namespace __gnu_cxx; struct eqstr { bool operator()(const char * s1, const char * s2) const { return strcmp(s1, s2) == 0; } }; ... hash_map< const char *, Strain *, hash< const char * >, struct eqstr > liveStrainTable; In the Simulation.cpp file, I attempt to initialize the table: string MRCA; for ( int b = 0;

Where can I find tomesh.c for windows?

有些话、适合烂在心里 提交于 2019-12-08 07:52:41
问题 It is used as a reference in many papers: K. Akeley, P. Haeberli, and D. Burns. tomesh.c : C Program on SGI Developer's Toolbox CD, 1990. On official SGI's site, I find only UNIX distributive. But where can I find source code and short description of the desirable for Windows OS? I find another linear speed cache optimisation algorithm realisation: http://files.rsdn.ru/38429/ls_vcache_opt.zip And how to use explanation (but on russial language) with code samle on C++: http://www.rsdn.ru/forum

'hash_map' was not declared in this scope with g++ 4.2.1

自作多情 提交于 2019-12-07 06:53:35
问题 I am trying to use sgi hash_map. #include <list> #include <iostream> #include <string> #include <map> #include <cstring> #include <tr1/unordered_map> #include <ext/hash_map> using namespace std; struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; int main() { hash_map<const char*, int, hash<const char*>, eqstr> months; months["january"] = 31; months["february"] = 28; months["march"] = 31; months["april"] = 30; months["may"] = 31; months[

How can I find out which library is home to a given object?

天大地大妈咪最大 提交于 2019-12-06 06:45:09
问题 I'm programming in FORTRAN and C on an SGI running Irix 6.5, but this should be applicable to all Unix-like systems. How do I find which library I need to link to my program when I get an "unresolved text symbol" link error? Here's an example of what I'm seeing from the linker: ld32: ERROR 33 Unresolved text symbol "ortho2_" -- first referenced by ./libfoo.a Do I just have to know which libraries are required, or is there some tool or command that can help me figure this out? 回答1: You can use