Hallo
Ich habs jetzt geschafft, mit DevCPP ein DLL-Projekt zu machen, habe aber noch Probleme mit fstream. Ich kriege (wenn ich nen File zum Projekt hinzufüge, der fstream verwendet) folgende Linker Errors:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x44c):unitsgfile.cpp: undefined reference to `fstreambase::close(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x59e):unitsgfile.cpp: undefined reference to `istream::tellg(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x5bf):unitsgfile.cpp: undefined reference to `istream::tellg(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x751):unitsgfile.cpp: undefined reference to `istream::read(char *, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x9c2):unitsgfile.cpp: undefined reference to `istream::read(char *, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xbf7):unitsgfile.cpp: undefined reference to `ostream::write(char const *, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xd69):unitsgfile.cpp: undefined reference to `istream::seekg(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xd83):unitsgfile.cpp: undefined reference to `ostream::seekp(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xefe):unitsgfile.cpp: undefined reference to `istream::seekg(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xf13):unitsgfile.cpp: undefined reference to `istream::tellg(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xf35):unitsgfile.cpp: undefined reference to `istream::seekg(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0xf7f):unitsgfile.cpp: undefined reference to `istream::read(char *, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x105a):unitsgfile.cpp: undefined reference to `ostream::seekp(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x106f):unitsgfile.cpp: undefined reference to `ostream::tellp(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x1091):unitsgfile.cpp: undefined reference to `ostream::seekp(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x11db):unitsgfile.cpp: undefined reference to `fstreambase::close(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x1294):unitsgfile.cpp: undefined reference to `istream::seekg(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x12a9):unitsgfile.cpp: undefined reference to `istream::tellg(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x12cb):unitsgfile.cpp: undefined reference to `istream::seekg(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x1315):unitsgfile.cpp: undefined reference to `istream::read(char *, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x13f0):unitsgfile.cpp: undefined reference to `ostream::seekp(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x1405):unitsgfile.cpp: undefined reference to `ostream::tellp(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x1427):unitsgfile.cpp: undefined reference to `ostream::seekp(long, ios::seek_dir)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text+0x161d):unitsgfile.cpp: undefined reference to `fstreambase::close(void)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text$__7fstreami+0xaf):unitsgfile.cpp: undefined reference to `fstreambase::fstreambase(int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text$open__7fstreamPCcii+0x1a):unitsgfile.cpp: undefined reference to `fstreambase::open(char const *, int, int)'
e:\samuel\programmierung\c++\devcpp\sgcommon4\unitsgfile.o(.text$_$_11fstreambase+0x60):unitsgfile.cpp: undefined reference to `filebuf::~filebuf(void)'
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
D:\ARBEIT~1\DevCpp\Bin\dllwrap: gcc exited with status 1
|
Ich habe an der Standardkonfiguration von DevCpp nichts geändert, und in den Compiler options steht unter C++ include files: DevCpp\Include\G++\
Warum also geht das nicht?
Ich hoffe jemand kann mir helfen.
Samuel G.