www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Using C++ Classes From D: dmd cannot link, while ldc segfault

reply Matheus Catarino <matheus-catarino hotmail.com> writes:
https://forum.dlang.org/post/kawfhminmtmwbmkzhwsp forum.dlang.org

On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote:
 LDC - the LLVM D compiler (1.32.2):
 ```
 main.d(32): Error: undefined identifier `vector` in module 
 `core.stdcpp.vector`, did you mean enum member `MIctor`?
 ```

 So what's wrong the LDC? how do I write 
 `core.stdcpp.vector.vector` then?
Currently, I was only able to get rid of this error using a fork of stdcpp still in progress in the standalone repository. Ref.: https://github.com/dlang/stdcpp/issues/5
Jan 25
parent reply Emmanuel Danso Nyarko <emmankoko519 gmail.com> writes:
On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino 
wrote:
 https://forum.dlang.org/post/kawfhminmtmwbmkzhwsp forum.dlang.org

 On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote:
 LDC - the LLVM D compiler (1.32.2):
 ```
 main.d(32): Error: undefined identifier `vector` in module 
 `core.stdcpp.vector`, did you mean enum member `MIctor`?
 ```

 So what's wrong the LDC? how do I write 
 `core.stdcpp.vector.vector` then?
Currently, I was only able to get rid of this error using a fork of stdcpp still in progress in the standalone repository. Ref.: https://github.com/dlang/stdcpp/issues/5
What OS are you using?
Jan 26
parent reply Matheus Catarino <matheus-catarino hotmail.com> writes:
On Friday, 26 January 2024 at 09:06:16 UTC, Emmanuel Danso Nyarko 
wrote:
 On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino 
 wrote:
 https://forum.dlang.org/post/kawfhminmtmwbmkzhwsp forum.dlang.org

 On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote:
 LDC - the LLVM D compiler (1.32.2):
 ```
 main.d(32): Error: undefined identifier `vector` in module 
 `core.stdcpp.vector`, did you mean enum member `MIctor`?
 ```

 So what's wrong the LDC? how do I write 
 `core.stdcpp.vector.vector` then?
Currently, I was only able to get rid of this error using a fork of stdcpp still in progress in the standalone repository. Ref.: https://github.com/dlang/stdcpp/issues/5
What OS are you using?
It's mentioned in the reference link. OS: ArchLinux
Jan 26
parent reply Emmanuel Danso Nyarko <emmankoko519 gmail.com> writes:
On Friday, 26 January 2024 at 13:40:12 UTC, Matheus Catarino 
wrote:
 On Friday, 26 January 2024 at 09:06:16 UTC, Emmanuel Danso 
 Nyarko wrote:
 On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino 
 wrote:
 https://forum.dlang.org/post/kawfhminmtmwbmkzhwsp forum.dlang.org

 On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote:
 LDC - the LLVM D compiler (1.32.2):
 ```
 main.d(32): Error: undefined identifier `vector` in module 
 `core.stdcpp.vector`, did you mean enum member `MIctor`?
 ```

 So what's wrong the LDC? how do I write 
 `core.stdcpp.vector.vector` then?
Currently, I was only able to get rid of this error using a fork of stdcpp still in progress in the standalone repository. Ref.: https://github.com/dlang/stdcpp/issues/5
What OS are you using?
It's mentioned in the reference link. OS: ArchLinux
Yes, this is a project currently in progress. Vector was only working for windows but we have it working on linux but it's not yet ready to be used that's why you could only use it from a standalone fork. We will be getting everything from the fork to the main tree soon after it is complete. We will notify the community when it's ready to be used. Thanks!
Jan 26
parent zjh <fqbqrr 163.com> writes:
On Friday, 26 January 2024 at 14:46:08 UTC, Emmanuel Danso Nyarko 
wrote:

 Yes, this is a project currently in progress. Vector was only 
 working for windows but we have it working on linux but it's 
 not yet ready to be used that's why you could only use it from 
 a standalone fork.
[here](https://forum.dlang.org/post/vmdisnkuffjgbxbyupuc forum.dlang.org) vector is not stable.
Jan 26