In need of a bit of help here: I've spent all day trying to compile libvncserver (https://github.com/LibVNC/libvncserver) on a Windows 10 computer. I'm following the commands listed here (https://github.com/LibVNC/libvncserver/blob/master/.appveyor.yml#L48) and running them line by line in my terminal. The issue I'm having is on line 47 (the nmake command), I get the following error in my console:
Has anyone had success compiling this library on Windows, and if so, could you provide some guidance? Am I compiling it correctly by following the appveyor file? Thank you!!
/f should be -f after nmake command
Also you should use the specified include path with double quotes("")
Related
I am excited to write my first program in C language with Eclipse.
I have done steps 1 to 4 under Prerequisites given on https://code.visualstudio.com/docs/cpp/config-mingw.
However,
The following commands to check MinGW installation are not recognized in command prompt.
g++ --version
gdb --version
The folder C:\msys64\mingw64\bin is empty.
Eclipse is throwing the following two errors:
Program "arm-none-eabi-g++" not found in PATH
Program "arm-none-eabi-gcc" not found in PATH
Can someone please help me with solution?
Thanks in advance!
Installed VS code and MinGW on windows. Added IntelliSense extension for C/C++. I had added the path of gcc.exe from the bin. Typed a simple C program. It's showing an error. Please help!
Error is:
PS F:\C\Chapter 1> gcc 001_first.c
C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain#16'
collect2.exe: error: ld returned 1 exit status
Also the problem is:
#include errors detected. Please update your include path. Squiggles are disabled for this translation unit( Path is mentioned )
Cannot open source file "stdio.h"
The IntelliSense error only means that VS Code can't find the header files. You need to set your include path. You can learn about it (and many others) here.
The second one is a bit more interesting. I also encountered it several times. The answer is: append -mconsole to the gcc command. It's because by default, it tries to build a desktop application, which requires WinMain.
Okay I'm having a particular issue during compilation using the command gcc -shared -o attack_test.so -fPIC attack_test.c. Specifically, when I run the command, I get the error fatal error: ec.h: No such file or directory. Any idea how to fix this issue? Thanks.
EDIT: To give a little more issue background, I'm running this command from the desktop, where my C source code is located. Perhaps there's a specific place I need to put the source and run the command?
EDIT 2: So I was able to get past the above error by running the command sudo apt-get install libssl-dev, and then changing the line #include <ec.h> to #include <openssl/ec.h>, which seemed to negate the issue. Adding the <openssl/...> to the other includes did not work the same way. So now, instead of fatal error: ec.h: No such file or directory, it's fatal error: ec_plugins.h: No such file or directory. Any ideas for possible fixes? Thanks so much!
For reference, I'm building upon the the dos_attack.c source code from this link.
TO BE CLEAR: This is for a project and tested upon in a CLOSED ENVIRONMENT. This is COMPLETELY* for EDUCATIONAL use and for the study of Denial-of-Service and Man-In-the-Middle mitigation techniques.
<ec.h> is intended to refer to a file in the Ettercap include directory, not an OpenSSL header. The same goes for the other ec_*.h headers.
Adding -I/path/to/ettercap/include to your compiler flags should fix this.
I am trying to use nmake to build a program I downloaded (source). The program is old (1994) but I need to build it for research purposes.
As I'm using windows, I'm calling nmake whilst in the \install\dos\ directory, and receiving:
makefile(62) : fatal error U1052: file '..\source\targets.mak' not
found.
I've checked, and targets.mak does exist in 'X:\Desktop\rsaref\source\targets.mak' so I tried the command:
nmake /F X:\Desktop\rsaref\source\targets.mak
But I now receive the error:
NMAKE : fatal error U1073: don't know how to make 'desc.c'
I have no clue what i'm doing here as i've never used makefiles before, and as this program is highly depreciated, i'm struggling to find advice on how to use it.
I'm using MinGW to compile C code. but when I give command "make", appear error : gcc.exe : fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found compilation terminated. make: * [all] Error 1. Does anybody know how to solve it?
though a long time since asked, I faced the same issue and I found a fine workaround when compiling.
gcc -fno-use-linker-plugin test.cpp -o test
Check your PATH environment variable and look for a path to another MinGW installation. I have two MinGW installed (first one in Falcon C++ IDE directory), and second one I installed by myself. There was two paths to MinGW in system PATH environment variable and that induced the error.