I'm trying to work with seqan 2 on windows. This is pain-in-the-ass as usual, but now there is something that grinds my nervs, and has to do with the lib self.
Here my program, simply stolen from the docs:
#include<iostream>
#include<seqan/sequence.h>
#include<seqan/seq_io.h>
usingnamespaceseqan;
intmain()
{
CharStringid;
Dna5Stringseq;
CharStringqual;
SeqFileInseqFileIn("E:/some.fastq");
readRecord(id,seq,qual,seqFileIn);
}
Not that big deal. But somehow I get a list of undefined references in the 'system_condition.h'. See the error log below. Do anyone have an idea, where the problem is? I assume that its either seqan or the compilation parameters, since the code itself is primitive.
C:\seqan-library-2.0.0\include/seqan/system/system_condition.h: In function 'void seqan::signal(seqan::Condition&)':
C:\seqan-library-2.0.0\include/seqan/system/system_condition.h:137:45: error: 'WakeAllConditionVariable' was not declared in this scope
WakeAllConditionVariable(&cond.data_cond);
^
In file included from C:\seqan-library-2.0.0\include/seqan/basic/basic_debug.h:52:0,
from C:\seqan-library-2.0.0\include/seqan/basic.h:49,
from C:\seqan-library-2.0.0\include/seqan/sequence.h:51,
from ..\console_1\main.cpp:2:
C:\seqan-library-2.0.0\include/seqan/basic/debug_test_system.h: In instantiation of 'bool seqan::ClassTest::testEqual(const char*, int, const T1&, const char*,
const T2&, const char*, const char*, ...) [with T1 = long unsigned int; T2 = long int]':
C:\seqan-library-2.0.0\include/seqan/basic/debug_test_system.h:1014:77: required from 'bool seqan::ClassTest::testEqual(const char*, int, const T1&, const char*,
const T2&, const char*) [with T1 = long unsigned int; T2 = long int]'
C:\seqan-library-2.0.0\include/seqan/system/system_condition.h:114:9: required from here
C:\seqan-library-2.0.0\include/seqan/basic/debug_test_system.h:955:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (!(value1 == value2))
^
In file included from C:\seqan-library-2.0.0\include/seqan/basic.h:61:0,
from C:\seqan-library-2.0.0\include/seqan/sequence.h:51,
from ..\console_1\main.cpp:2:
C:\seqan-library-2.0.0\include/seqan/basic/basic_exception.h: At global scope:
C:\seqan-library-2.0.0\include/seqan/basic/basic_exception.h:358:37: warning: 'seqan::_globalExceptionHandler' defined but not used [-Wunused-variable]