Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wudai
    Junior Member
    • Jan 2010
    • 1

    compiling peakseq

    I have been trying to compile peakseq 1.1 (http://info.gersteinlab.org/PeakSeq) however I get an error:
    $make
    ...
    src/genomics/chip_seq/peak_selector/peakseq.cpp:67:54: error: ‘strlen’ was not declared in this scope
    src/genomics/chip_seq/peak_selector/peakseq.cpp:68:38: error: ‘strcpy’ was not declared in this scope
    ...
    after adding in #include <string.h> to peakseq.cpp I get the following error:
    ...
    src/lib/utils/ansi_string/ansi_string.cpp:122:34: error: ‘memset’ was not declared in this scope
    src/lib/utils/ansi_string/ansi_string.cpp: In static member function ‘static void t_string::replace_avoid_list(char*, char*, char)’:
    src/lib/utils/ansi_string/ansi_string.cpp:262:44: error: ‘memset’ was not declared in this scope
    ...
    I was tempted to add <string.h> to ansi_string.cpp but i noticed a comment saying not to add it.

    Thus, I was wondering if anyone had sucess compiling peakseq without modifying the files.

    I am using gcc version 4.5.2 on ubuntu 11.04
  • epi
    Member
    • Jan 2012
    • 38

    #2
    Same thing here.

    Any suggestions folks

    Comment

    • Mirrian
      Junior Member
      • Jan 2011
      • 1

      #3
      You have to add "#include <string.h>" in the beginning of following two files and make again.

      src/genomics/chip_seq/peak_selector/peakseq.cpp and
      src/lib/utils/ansi_string/ansi_string.cpp

      Mirrian

      Comment

      • AL_B
        Junior Member
        • Aug 2013
        • 5

        #4
        compilation of PeakSeq

        I added to ansi_string.cpp and peakseq.cpp
        #include<cstring>
        and it worked (fixed the problem of strcpy and memset)

        Comment

        • maxUlysse
          Junior Member
          • Jan 2014
          • 2

          #5
          I think it's better to add
          #include<cstring>
          than
          #include <string.h>
          in src/genomics/chip_seq/peak_selector/peakseq.cpp and
          src/lib/utils/ansi_string/ansi_string.cpp
          Because, it's says clearly in ansi_string.cpp that string.h should do not be added.

          Comment

          Latest Articles

          Collapse

          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM
          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          55 views
          0 reactions
          Last Post SEQadmin2  
          Working...