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

          • 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
          • SEQadmin2
            From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
            by SEQadmin2


            Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


            The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
            ...
            06-02-2026, 10:05 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          30 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-09-2026, 11:58 AM
          0 responses
          96 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          115 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          109 views
          0 reactions
          Last Post SEQadmin2  
          Working...