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

Need to define ThreadCount to be able to compile PnET on Linux #15

Open
Klemet opened this issue Oct 24, 2024 · 0 comments
Open

Need to define ThreadCount to be able to compile PnET on Linux #15

Klemet opened this issue Oct 24, 2024 · 0 comments

Comments

@Klemet
Copy link

Klemet commented Oct 24, 2024

I've been trying to compile PnET on Linux lately (never done that before).

After making sure all of the references to other libraries where dealt with, I had the following errors :

2.431 PlugIn.cs(257,18): error CS1061: 'PlugIn' does not contain a definition for 'ThreadCount' and no accessible extension method 'ThreadCount' accepting a first argument of type 'PlugIn' could be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-PnET-Succession/src/PnET-Succession.csproj]
2.431 PlugIn.cs(619,22): error CS1061: 'PlugIn' does not contain a definition for 'ThreadCount' and no accessible extension method 'ThreadCount' accepting a first argument of type 'PlugIn' could be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-PnET-Succession/src/PnET-Succession.csproj]
2.432 PlugIn.cs(622,100): error CS1061: 'PlugIn' does not contain a definition for 'ThreadCount' and no accessible extension method 'ThreadCount' accepting a first argument of type 'PlugIn' could be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-PnET-Succession/src/PnET-Succession.csproj]
2.432 PlugIn.cs(627,101): error CS1061: 'PlugIn' does not contain a definition for 'ThreadCount' and no accessible extension method 'ThreadCount' accepting a first argument of type 'PlugIn' could be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-PnET-Succession/src/PnET-Succession.csproj]

Looking at the code of PlugIn.cs, it seems like a property called this.ThreaCount is used several time, but never properly referenced in the class.

Adding the line public int ThreadCount; at the beginning of the class (with the references to its other properties) solved the issue in my case.

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

No branches or pull requests

1 participant