sonatype-nexus-community / cheque

Audit C/C++ projects (make, cmake, command line, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot execute cheque

YianChen18 opened this issue · comments

commented

Using go version 1.15.2

Ran go build main.go
Then tried:

  • ./main cheque -lpng demo.c
  • ./main -lpng demo.c
  • ./main demo.c

They all returned the message: Cheque FATAL: Cannot find official command:

Did anyone experience this before?

commented

@

Ran go build main.go

I may be missing something, but I typically build cheque using the command:

go build

in the root of the cheque project. This should produce an executable cheque in the cheque project root directory. You can then invoke the newly built executable:

$ ./cheque 
Error: No input files

Usage: cheque [options] <filename> ...
...

Then you can use the cheque exectable as desired.

commented

Thanks, it's able to execute now.

In the example section, I saw the use of -lpng. What do they stand for? It's not included in the README
Also, what are the file types that Cheque supports besides .c?

See the Usage section, the -l argument.

Glad to hear you got it working!

commented

It's able to execute but returns nothing.
Do you think you could provide me a sample file to scan? It would be much appreciated.