Skip to content

Error linking while using callgraph as a lib #33

@Lawliar

Description

@Lawliar

I want to simply print out a callgraph while using cil.callgraph as followed:

open Cil
module E = Errormsg
module L = List
module CG = Callgraph
let test f:file = 
  let cg= CG.computeGraph f in
  CG.printGraph stdout cg
(*merge the input file e.t.c.*)

however as I was using

 ocamlfind ocamlc -linkpkg -thread -package cil,cil.callgraph test.ml -o test.byte

the compiler complains

File "test.ml", line 1:
Error: Error while linking /home/lcm/.opam/system/lib/cil/cil.cma(Feature):
Reference to undefined global `Findlib'

I do not know where to start debugging with
Does anyone have any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions