-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error: expression CONNECTION_INIT = CONNECTION_INIT().ordinal() is not a constant #1
Comments
Build the demo for AMQP with E:\PuTao\Dlang\hunt-amqp-client\examples\SimpleDemo>dub build --arch=x86_64 --build=debug --compiler=ldc2
Performing "debug" build using ldc2 for x86_64.
hunt 1.6.1: building configuration "library"...
hunt-extra 1.0.0: building configuration "library"...
hunt-net 0.5.0: building configuration "default"...
hunt-time 1.1.0: building configuration "library"...
hunt-proton 1.1.0-beta.2: building configuration "library"...
core.exception.OutOfMemoryError@core\exception.d(647): Memory allocation failed
----------------
0x00007FF73CC9F2B5
0x00007FF73CC9EBE2
0x00007FF73CC9D197
0x00007FF73CC59B1E It's sure that I have enough free memory ( >8G). The good news is the demo can be built with DMD. So, can you have a try with DMD? |
By the way, which version is used? I just tested the latest one. |
I tested with dmd (latest version), and now I have some linking errors (libcmt.lib and OLDNAMES.lib missing). And I tested with ldc2 1.21.0 before. |
If installing dmd without Visual Studio 2017+, you must install the VC 2010+ runtime. |
I have Visual Studio 2019 installed and VC 2010 runtime installed too. |
It's so strange. I also failed to build the demo now because of the error: Here is my build command: dub build --arch=x86_64 --build=debug --compiler=dmd |
It fixed now in commit 5a7f52a. I tested with the latest DMD and LDC2 on Windows. Run |
Alright, after |
The hunt-amqp should be upgraded to 1.1.0-beta.3 too. Check this in dub.selections.json, please. |
It is upgraded to that version as well. Here is my dub.selections.json {
"fileVersion": 1,
"versions": {
"arsd-official": "8.0.0",
"hunt": "1.6.1",
"hunt-amqp": "1.1.0-beta.3",
"hunt-amqp-client": "1.1.0-beta.2",
"hunt-cache": "0.8.1",
"hunt-console": "0.2.0",
"hunt-database": "2.1.0",
"hunt-entity": "2.6.0",
"hunt-extra": "1.0.0",
"hunt-framework": "3.1.2",
"hunt-http": "0.6.0",
"hunt-jwt": "0.1.0-beta.1",
"hunt-net": "0.5.0",
"hunt-openssl": "1.0.2",
"hunt-pool": "1.1.1",
"hunt-proton": "1.1.0-beta.3",
"hunt-redis": "1.2.0",
"hunt-security": "0.4.0",
"hunt-shiro": "1.1.0",
"hunt-sql": "1.4.0",
"hunt-time": "1.1.0",
"hunt-validation": "0.3.0",
"libmemcached": "1.1.2",
"poodinis": "8.1.0-beta.2"
}
} |
It's so sorry. A file was fogot to submit. It's fixed now in commit huntlabs/hunt-amqp@a561292 |
Sorry for the late reply, I was busy this week. I tried compiling again with both dmd and ldc2 and it seems fine (at least, it's compiling). I will make further tests this weekend and see if it is linking and running properly. Thanks. |
Hello,
While trying to follow the hunt-framework example, I get this error:
Error: expression CONNECTION_INIT = CONNECTION_INIT().ordinal() is not a constant
I am compiling on Windows 10, x86_64 architecture with ldc2 1.21.0 (using dub run).
The text was updated successfully, but these errors were encountered: