-
Notifications
You must be signed in to change notification settings - Fork 35
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
Compile issue 'undefined reference to straw' #7
Comments
Thanks for the feedback. I'm currently working on straw.cpp right now to
add URL support.
It's strange that you had to use an old version of the straw.cpp, I was
able to compile the current Git version very recently, I will look into it.
There is a README. The README directs you to the wiki, where you will find
instructions on compiling the C++ version (as well as information for our
Python and R users).
https://github.com/theaidenlab/straw/wiki/CPP
…On Thu, Feb 16, 2017 at 3:10 PM, mmterpstra ***@***.***> wrote:
Cannot use the current straw.cpp to find the straw function but by
including the ../python/old the compilation works:
straw-86c2939e3695e31a5a41f53cc1231f7fcb77fb87/C++$ g++ -lz -std=c++11 -o straw main.cpp straw.cpp
/tmp/cc4rs88z.o:main.cpp:function main: error: undefined reference to 'straw(std::string, std::string, int, std::string, std::string, std::string, std::vector<int, std::allocator<int> >&, std::vector<int, std::allocator<int> >&, std::vector<float, std::allocator<float> >&)'
#working version
straw-86c2939e3695e31a5a41f53cc1231f7fcb77fb87/C++$ g++ -lz -std=c++11 -o straw main.cpp straw.cpp ../python/old/straw.cpp
ps: also try to include a makefile or include it into the README for this
project.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWiW5uRMcgIeFam1YWeCtK62qsdOtplks5rdFjJgaJpZM4MDDeG>
.
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
|
I've seen the wiki yes. |
this is a suggested makefile: bin/straw: C++/straw.cpp C++/main.cpp C++/straw.h |
Thanks!
The old folder in python should be deleted. I'll be pushing updates soon.
…On Thu, Feb 16, 2017 at 3:32 PM, mmterpstra ***@***.***> wrote:
this is a suggested makefile:
CC=g++
#for linux
CPPFLAGS=-O2 -lz -std=c++11
#for mac
#CPPFLAGS=-O2 -lz
#for windows
#CPPFLAGS=???
bin/straw: C++/straw.cpp C++/main.cpp C++/straw.h
cd C++ && $(CC) $(CPPFLAGS) main.cpp straw.cpp ../python/old/straw.cpp -o
../$@
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWiW6A4mexsEz4MHwI_2XkeoWX4sTOhks5rdF3jgaJpZM4MDDeG>
.
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
|
I am really puzzled by your issue. The files are exactly the same:
diff ../python/old/straw.cpp straw.cpp
returns nothing.
On Thu, Feb 16, 2017 at 3:33 PM, Neva Durand <neva@broadinstitute.org>
wrote:
… Thanks!
The old folder in python should be deleted. I'll be pushing updates soon.
On Thu, Feb 16, 2017 at 3:32 PM, mmterpstra ***@***.***>
wrote:
> this is a suggested makefile:
> CC=g++
> #for linux
> CPPFLAGS=-O2 -lz -std=c++11
> #for mac
> #CPPFLAGS=-O2 -lz
> #for windows
> #CPPFLAGS=???
>
> bin/straw: C++/straw.cpp C++/main.cpp C++/straw.h
> cd C++ && $(CC) $(CPPFLAGS) main.cpp straw.cpp ../python/old/straw.cpp -o
> ../$@
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#7 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABWiW6A4mexsEz4MHwI_2XkeoWX4sTOhks5rdF3jgaJpZM4MDDeG>
> .
>
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
|
I just tried the current version on Linux and had no trouble compiling. I
don't understand why you'd need two copies of the exact same file?
On Thu, Feb 16, 2017 at 3:42 PM, Neva Durand <neva@broadinstitute.org>
wrote:
… I am really puzzled by your issue. The files are exactly the same:
diff ../python/old/straw.cpp straw.cpp
returns nothing.
On Thu, Feb 16, 2017 at 3:33 PM, Neva Durand ***@***.***>
wrote:
> Thanks!
>
> The old folder in python should be deleted. I'll be pushing updates soon.
>
> On Thu, Feb 16, 2017 at 3:32 PM, mmterpstra ***@***.***>
> wrote:
>
>> this is a suggested makefile:
>> CC=g++
>> #for linux
>> CPPFLAGS=-O2 -lz -std=c++11
>> #for mac
>> #CPPFLAGS=-O2 -lz
>> #for windows
>> #CPPFLAGS=???
>>
>> bin/straw: C++/straw.cpp C++/main.cpp C++/straw.h
>> cd C++ && $(CC) $(CPPFLAGS) main.cpp straw.cpp ../python/old/straw.cpp
>> -o ../$@
>>
>> —
>> You are receiving this because you commented.
>> Reply to this email directly, view it on GitHub
>> <#7 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/ABWiW6A4mexsEz4MHwI_2XkeoWX4sTOhks5rdF3jgaJpZM4MDDeG>
>> .
>>
>
>
>
> --
> Neva Cherniavsky Durand, Ph.D.
> Staff Scientist, Aiden Lab
> www.aidenlab.org
>
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org
|
After a new login it works...might be our module system giving quirks. Sorry for the bother. $ g++ -lz -std=c++11 -o straw main.cpp straw.cpp /straw-86c2939e3695e31a5a41f53cc1231f7fcb77fb87/C++$ ml -t list |
Glad to hear it. Thanks for the Makefile suggestion.
…On Fri, Feb 17, 2017 at 9:53 AM mmterpstra ***@***.***> wrote:
After a new login it works...might be our module system giving quirks.
Sorry for the bother.
$ g++ -lz -std=c++11 -o straw main.cpp straw.cpp
/straw-86c2939e3695e31a5a41f53cc1231f7fcb77fb87/C++$ ml -t list
EasyBuild/2.1.1
GCC/4.9.3-binutils-2.25
binutils/2.25-GCC-4.9.3-binutils-2.25
GNU/4.9.3-2.25
numactl/2.0.10-GNU-4.9.3-2.25
hwloc/1.11.0-GNU-4.9.3-2.25
OpenMPI/1.8.8-GNU-4.9.3-2.25
OpenBLAS/0.2.14-GNU-4.9.3-2.25-LAPACK-3.5.0
gompi/2015b
FFTW/3.3.4-gompi-2015b
ScaLAPACK/2.0.2-gompi-2015b-OpenBLAS-0.2.14-LAPACK-3.5.0
foss/2015b
R/3.2.2-foss-2015b-bioconductor
zlib/1.2.8-foss-2015b
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWiW-DWUfIDRECvVnxXVJxxQeheFbo6ks5rdWAQgaJpZM4MDDeG>
.
|
Merge pull request #7 from PhanstielLab/master
Cannot use the current straw.cpp to find the straw function but by including the ../python/old the compilation works:
ps: also try to include a makefile or include it into the README for this project.
The text was updated successfully, but these errors were encountered: