DUH! DUH! Thank you for pulling my head out!!! Too used to other operating systems. Thank you.
Type: Posts; User: mathguy
DUH! DUH! Thank you for pulling my head out!!! Too used to other operating systems. Thank you.
I am creating a small test program to call a shared object in Ubuntu. I compile it with no complaints and see the program name listed as an executable in the file system. However, when I am in...
The macro is:
#define max(a,b) (((a) > (b)) ? (a) : (b))
Also, it doesn't complain during the build of the shared object. It complains that the undefined is in the shared object when I...
The "func" that I'm speaking of is max (for maximum of two numbers). Is that contained in the stdlib.h for gcc? If so, is it that my #define is conflicting with the stdlib version?
Thank you both. Both sources are reaping great rewards and I'm just about there. Now I'm chasing a "undefined reference to 'func'" error even though I have the macro defining 'func' in each of the...
I have created a shared object in Ubuntu (libMYLIB.so). I am now trying to compile a simple test program (testmylib.c) to see if the shared object is properly built. I am getting an error that the...
What about the Pelles compiled code not crashing the app? Any idea as to why that version works?
Oh...let me add that the exact same code compiled in Pelles does not crash the app.
We are producing a DLL in Visual Studio. That DLL when called by a VB application crashes the application in production. It does not crash it in debug mode. We produce a very similar DLL and...
I think the other issue is that your printing a pointer (i.e. &var_name) instead of the variable itself (i.e. var_name).
He said to ignore the final error because that was due to the missing bracket for the main function.
Compare is == not =.
Aren't you missing the final } for the main function?
I have been meaning to get back. I've got it solved and working. It wouldn't have happened without all of your help. Thank you! I truly appreciate the time you all took responding to my questions.
Okay. Well, I'm sure that we're set for Win32. Anything else you can think of that would cause it to work in Windows 7 but not XP and Server 2003? I realize now that the MSVCR80, etc. are runtime...
Okay will check to be sure. How should I be totally sure?
In depends.exe, we still have MSVCR80.DLL even though we have debugging off for a release build. Why is that still included? How do I remove that? Could that be our issue?
Building on a 64-bit system but for Win32.
Okay, with your help (thank you, thank you), I've got a successful build that we're able to call from Visual Basic in Windows 7. We're building the DLL in Visual Studio 5 SP3 on a Windows 7 machine....
It looks like the VS version is not exporting the function. The outputs from Dependency Walker are virtually identical except the VS version has MSVCR80D.DLL in the output. Also in the output pane,...
Declaration of DLL from C code.
int __stdcall DLLNAME(struct bufferone far *a_one,
struct buffertwo far *b_one,
struct buffertwo far *b_two,
...
Okay. I've been struggling with this for a long time. I've decided to finally ask it out here and see if I can make it work. I have code that I can successfully build on a couple of different...
They are. I think that, as anduril said, it is a linker error. But, I've got the linker pointing to the .dll.a file. Still no go.
Hi Tater,
That's a good question. Doesn't the use of double-quotes "" around the filename indicate to the compiler that the header files are in the source directory?
Tim,
Thank you for your reply. It is not a prototype error. Sorry about the inaccuracy there. I was thinking of something else while writing. I am getting "undefined reference" errors. I do...