I have tried to compile an application written in Clipper 5.2.
It is experiencing an error which I believe is the inclusion of libraries.
The moment that I linked, it displays the following error:
I'm using: rtlink fi MyApp
Stretch of code where I import libraries:
#include "INKEY.CH"
#include "GRUMP.CH"
#include "BOX.CH"
#include "GRUMPBRO.CH"
#include "BOXGET.CH"
REQUEST dbfcdx
function Weekextr()
enter code here
Someone with knowledge clipper could help me?
Related
I'm working on a car-game project build with unreal engine 4.26, visual studio 2019 pro on win10.
However every time I try to build my project, it yeilds error:
1>C:\CTS6\Source\CarSimulation\SpeechEngine.cpp(11): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
Here is my code:
#include "SpeechEngine.h"
#include "SaHinhType.h"
#define _WINSOCKAPI_
#include <windows.h>
#include <sapi.h>
#include <minwindef.h>
#include <atlbase.h>
#include <sphelper.h>
using namespace std;
ISpVoice *voice;
CComPtr<IEnumSpObjectTokens> cpEnum;
CComPtr<ISpObjectToken> cpVoiceToken;
SpeechEngine *SpeechEngine::instance = nullptr;
I've searched around but these suggestion do not solve my problem.
I've install VS Pro from official online installer and I've ticked all 'atl' related components.
Image of installation
Let me start off by stating that I am not a programmer. I am a Mech Eng that has to use code from various other engineers and assemble them into an executable. The main code is fortran and is compiled using Intel Fortran via Visual Studio 2008 (yes, very old version). One of the supporting codes is c++. Normally, I compile the c++ code using the built in Visual c++ compiler into a static lib then link the static lib into the main fortran code. The latest update of the c++ code will not compile in the 2008 Visual c++ because it needs the /permissive option. So, I have tried to get the c++ code compile into a static lib using g++. I get unresolved external symbol errors when doing this. The c++ code I use it very complex so I decided to make a simple example to see if I could get that to work. I am getting similar errors but since it is so simple I can post it here.I am sure someone on this forum can fix it in a few min. Here is the example c++ code:
#include <fstream>
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
//------------------------------------------------------------------------
extern "C"
{
void add_2_nums(double *x,double *y,double *z);
}
extern "C" void add_2_nums(double *x,double *y,double *z)
{
*z = *x + *y;
return;
}
I compiled it using both g++/ar and mingw32-g++/mingw32-gcc-ar. Here is an example command:
mingw32-g++ -s -Iincludem -Iincludev -c -O2 -DNDEBUG add_2_nums.cpp
mingw32-gcc-ar r add_2_nums.lib add_2_nums.o
Some of the compiler options I used was from this forum in trying to resolve the errors and may not be appropriate.
Here is the simple fortran code:
program gcc_fun
implicit none
! Variables
real*8 x,y,z
x = 3.d0
y = 17.d0
call add_2_nums(x,y,z)
! Body of gcc_fun
print *, 'Z = ', z
end program gcc_fun
I use the C,Reference compile option and the rest default inside the Visual Studio environment. Here are the errors I get:
Error 1 error LNK2019: unresolved external symbol __ZNSt8ios_base4InitD1Ev referenced in function ___tcf_0 add_2_num.lib(static_lib_test.o)
Error 2 error LNK2019: unresolved external symbol __ZNSt8ios_base4InitC1Ev referenced in function __GLOBAL__sub_I_add_2_nums add_2_num.lib(static_lib_test.o)
Error 3 fatal error LNK1120: 2 unresolved externals Debug\gcc_fun.exe
I've a Mac which runs Sierra. I installed all pre-requisites for tensorflow serving as mentioned here.
https://www.tensorflow.org/serving/setup
But when I try to bazel build tensorflow serving as they mentioned, I get 3 errors and the build stops.
error use of undeclared identifier 'pthread_mach_thread_np'
Inserting following lines of code
#ifndef _MACH_PORT_T
#define _MACH_PORT_T
#include <sys/_types.h> /* __darwin_mach_port_t */
typedef __darwin_mach_port_t mach_port_t;
#include <pthread.h>
mach_port_t pthread_mach_thread_np(pthread_t);
#endif /* _MACH_PORT_T */
into file:
/Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support
This issue is discussed in this thread.
I am trying to build an application that requires iwscapi.h. I am getting error:
"Cannot open include file: 'iwscapi.h': No such file or directory".
Below are my includesthat I have used:
#include <stdio.h>
#include <atlbase.h>
#include <atlstr.h>
#include <wscapi.h>
#include <iwscapi.h>
I have added Wscapi.lib in the linker. My build machine is Windows 7 and I am using VS2005 compiler. I manually searched the file iwscapi.h in C drive but it is missing.
Please let me know what causing this error.
Thanks in advance.
I have a PS3 that I've installed YDL 6.1 and SDK 3.1 on and everything seems to be working fine, as I can compile and run the examples. However, I've run into some problems with writing programs of my own. I've created a small test case that seems to pinpoint the cause of the failure. I have the following code:
// mathtest.c
#include <stdio.h>
#include <math.h>
int main ()
{
double param, result;
param = 1024.0;
result = sqrt (param);
printf ("sqrt(%lf) = %lf\n", param, result );
return 0;
}
When I then run
ppu-gcc mathtest.c
I get the following error
/tmp/ccFqwJdG.o:(.text+0x20): undefined reference to `sqrt'
collect2: ld returned 1 exit status
I already checked to make sure that math.h exists on this system and it does define sqrt. I also already tried running this:
ppu-gcc -I/usr/includes/ mathtest.c
but it results in the same error. I'm confused, anyone have any ideas?
I sometimes got similar errors on Linux, using -lm as a gcc parameter helped there. Perhaps it does here, too. The parameter tells the linker to include the math library, too.