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 compiling flexible_jobshop.cc from VS2017 binary #709
Comments
Thanks, I did not fix this example after all the changes in the base
library.
I will have a look.
Please note that using jobshop_sat.cc along the
ortools/data/jobshop_scheduling.proto is recommended.
…--Laurent
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mar. 29 mai 2018 à 23:48, aldeo <notifications@github.com> a écrit :
Hi,
I downloaded the or-tools binary for VS2017 from
https://github.com/google/or-tools/releases/download/v6.7.1/or-tools_VisualStudio2017-64bit_v6.7.4973.zip
<http://url> and got the following error while compiling the examples:
examples\cpp\flexible_jobshop.cc(228): error C2039: 'Join': is not a member of 'strings'
include\ortools/base/stringpiece_utils.h(21): note: see declaration of 'strings'
examples\cpp\flexible_jobshop.cc(227): error C3861: 'Join': identifier not found
make: *** [objs\\flexible_jobshop.obj] Error 2
*Steps to reproduce:*
- Open x64 Native Tools Command Prompt for VS 2017
- Go to directory where .zip file was extracted
- Run "make all"
*How I fixed it locally:*
- Open file ""..\examples\cpp\flexible_jobshop.cc""
- Add header file: #include "ortools/base/join.h"
- Replace string::Join -> absl::StrJoinin line 229
This fixes the compilation issue but I wonder whether it is the right way
to do it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#709>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKj17ZTYAkVT05B7KRXOszzDPnuge6Krks5t3kCfgaJpZM4USsBb>
.
|
Please note that if you compile from source, the flexible_jobshop compiles
fine.
Thanks
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mer. 30 mai 2018 à 06:33, Laurent Perron <lperron@google.com> a écrit :
… Thanks, I did not fix this example after all the changes in the base
library.
I will have a look.
Please note that using jobshop_sat.cc along the
ortools/data/jobshop_scheduling.proto is recommended.
--Laurent
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68
53 00
Le mar. 29 mai 2018 à 23:48, aldeo ***@***.***> a écrit :
> Hi,
> I downloaded the or-tools binary for VS2017 from
> https://github.com/google/or-tools/releases/download/v6.7.1/or-tools_VisualStudio2017-64bit_v6.7.4973.zip
> <http://url> and got the following error while compiling the examples:
>
> examples\cpp\flexible_jobshop.cc(228): error C2039: 'Join': is not a member of 'strings'
> include\ortools/base/stringpiece_utils.h(21): note: see declaration of 'strings'
> examples\cpp\flexible_jobshop.cc(227): error C3861: 'Join': identifier not found
> make: *** [objs\\flexible_jobshop.obj] Error 2
>
> *Steps to reproduce:*
>
> - Open x64 Native Tools Command Prompt for VS 2017
> - Go to directory where .zip file was extracted
> - Run "make all"
>
> *How I fixed it locally:*
>
> - Open file ""..\examples\cpp\flexible_jobshop.cc""
> - Add header file: #include "ortools/base/join.h"
> - Replace string::Join -> absl::StrJoinin line 229
>
> This fixes the compilation issue but I wonder whether it is the right way
> to do it.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#709>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AKj17ZTYAkVT05B7KRXOszzDPnuge6Krks5t3kCfgaJpZM4USsBb>
> .
>
|
Sounds like this error may be fixed already but not merged into master but FYI I'm also getting this same error building my docker container from
My full Dockerfile is this for reference
|
In fact it's already fix on master (for 6.8) but not backported to branch 6.7.x (just created). Waiting for CI to pass them hope to release new package or-tools_Debian-9.3-64bit_v6.7.4978.tar.gz on Monday, tag will be v6.7.2 note: python ortools is standalone, i.e. contains all needed libs -> no need of the tar.gz for python usage |
Haha, yes that is clear as day in the documentation now that I read it again 😄 Cheers. |
Hi,
I downloaded the or-tools binary for VS2017 from https://github.com/google/or-tools/releases/download/v6.7.1/or-tools_VisualStudio2017-64bit_v6.7.4973.zip and got the following error while compiling the examples:
Steps to reproduce:
How I fixed it locally:
#include "ortools/base/join.h"
string::Join
->absl::StrJoin
in line 229This fixes the compilation issue but I wonder whether it is the right way to do it.
The text was updated successfully, but these errors were encountered: