Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockets.d(21,27): Error: undefined identifier 'vibe.core.net.TCPConnection' #130

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

Marenz
Copy link

@Marenz Marenz commented Sep 19, 2017

When compiling in singleFile mode, I get a compilation error:

> dub test --build-mode=singleFile    

Generating test runner configuration 'masterserver-test-unix' for 'unix' (executable).
Performing "unittest" build using dmd for x86_64.
vibe-d:utils 0.7.32: target for configuration "library" is up to date.
vibe-d:data 0.7.32: target for configuration "library" is up to date.
vibe-d:core 0.7.32: target for configuration "libevent" is up to date.
mysql-native 1.1.0: building configuration "library"...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/commands.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/connection.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/db.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/escape.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/exceptions.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/metadata.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/package.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/pool.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/prepared.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/constants.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/extra_types.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/packet_helpers.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/packets.d...
Compiling ../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/sockets.d...
../../.dub/packages/mysql-native-1.1.0/mysql-native/source/mysql/protocol/sockets.d(21,27): Error: undefined identifier 'vibe.core.net.TCPConnection'
dmd failed with exit code 1.

> dmd -v
DMD64 D Compiler v2.073.2

adding static import vibe.core.net; right above the error line fixed the problem for me.

@Marenz
Copy link
Author

Marenz commented Sep 20, 2017

@Abscissa ah, I was hoping you'd include this fix in the last release ;)

@Abscissa Abscissa merged commit 6392b35 into mysql-d:master Sep 20, 2017
@Abscissa
Copy link

Tagged v1.1.2

@Marenz Marenz deleted the fix-single-file-build branch September 21, 2017 11:05
@Marenz
Copy link
Author

Marenz commented Sep 21, 2017

ty <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants