Skip to content
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

Constant "Run time error 19: "File or function is not found"" error #721

Open
tmob03 opened this issue Apr 25, 2023 · 0 comments
Open

Constant "Run time error 19: "File or function is not found"" error #721

tmob03 opened this issue Apr 25, 2023 · 0 comments

Comments

@tmob03
Copy link

tmob03 commented Apr 25, 2023

Issue description:

Constantly getting the Run time error 19: "File or function is not found" error on many standard library functions. Functions like print() work but things like gettime() don't.

Dockerfile:

FROM ubuntu:bionic AS compiler-build

RUN apt-get update && \
    apt-get install -y gcc \
                       gcc-multilib \
                       make \
                       cmake \
                       git \
                       python3.8

WORKDIR /home
RUN git clone https://github.com/Zeex/pawn.git pawn
RUN mkdir build && \
    cd build && \
    cmake ../pawn/source/compiler \
    -DCMAKE_C_FLAGS=-m32 \
    -DCMAKE_BUILD_TYPE=Release && \
    make
WORKDIR /home/build
RUN cd /home/build && \
    chmod +x pawncc libpawnc.so pawnruns

COPY ["test.pawn", "run.sh", "."]
ENTRYPOINT ["./run.sh"]

run.sh:

#!/bin/bash
./pawncc test.pawn -O2 -i/home/pawn/include

./pawnruns test.amx

Minimal complete verifiable example (MCVE):

#include <time>
#include <console>

main()
{
	new hours, minutes, seconds,timestamp;
	timestamp = gettime(hours, minutes, seconds);
	printf("Seconds since midnight 1st January 1970: %d", timestamp);
}

Workspace Information:

  • Compiler version: Latest
  • Command line arguments provided (or sampctl version): see run.sh above
  • Operating System: Windows running an ubuntu docker image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant