-
Notifications
You must be signed in to change notification settings - Fork 289
Can't compile when including transaction.hpp #486
Comments
If I switch back to the eosiolib includes, the build passes and as expected you get the deprecation warnings.
|
The error you're getting is due to small bug in the declaration of This issue is fixed in PR #479 |
@jasonbert Could you give more details on which operating system you are currently using, as well as any other information that you think may be pertinent? I am unable to reproduce the error on my machine. |
I don't think it would make a difference, but I was editing with Visual Studio Code. The compilation is all run through the Bash shell WSL provides. There's possibly something VS Code is doing to supply include paths, I was using a I've cleaned up my WSL and reinstalled EOS & EOSIO.CDT, now I can run To be fair, this could have been localised to my WSL install. Although, interesting @smlu has identified the probable problem. I have also switched to using EOS Studio, which builds via Docker, so I'm not blocked anymore :). |
I am blocked on this issue. I am getting the below errors. I am using cmake and I don't think EOS Studio is a workaround in my case. You can replicate the issue by cloning the following repo and running make (https://github.com/gyftie/gyftie-contracts2). I am looking for a workaround. thanks
|
Can you try again with v1.6.2? I just cloned the repo and was able to successfully build with 1.6.2. There were deprecation warnings about |
When I put all my code in the header files instead of in cpp files, it works. But as it does not work when the code uses the transaction object and additional cpp files. Not sure the root cause, but it is really annoying. |
The fix for this was released in 1.6.2. |
Using the test contract below, I'm unable to compile when including
<eosio/transaction.hpp>
.The text was updated successfully, but these errors were encountered: