On Tue, 12 Nov 2013 15:21:16 +0100, Sönke Ludwig wrote:

Am 12.11.2013 14:36, schrieb Stephan Dilly:

so i created a dub package with a mysql-native and vibe.d dependancy. now i am used to work with visuald but i cannot link my project. i want to use the pooled connection stuff like in the sample. my application gets the "Havevibed" version so that it uses the code in mysql-native that uses vibe-d for pooling. but the mysql-native library in my solution does not get this version defined. that leads to the problem that even though my exe expects this part of the library mysql-native is build without that part and that way the linker poos itself:

Error 42: Symbol Undefined _D5mysql2db7MysqlDB7__ClassZ
Error 42: Symbol Undefined _D5mysql2db7MysqlDB6__ctorMFAyaE5mysql10connection11SvrCapFlagsZC5mysql2db7MysqlDB (mysql.db.MysqlDB mysql.db.MysqlDB.__ctor(immutable(char)[], mysql.connection.SvrCapFlags))

i can fix that by either using

1)

dub generate visuald-combined

which is bad since it a) drives the compile times up too much and b) is bad project structure

2)
i can add the version "Havevibed" to the mysql-native lib by hand and also the import paths of vibe.d so that the correct "version" of the lib gets compiled. but i have to do this everytime i use "dub generate" which also sucks

is there a better way to fix this ?

I'll fix that, it's definitely a bug.

Oh great, thank you. let me know when i can try it