Boost was not my decision - I wanted to chuck it but I was overruled by committee. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ MinGW-dvlpr mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr Greg Chicares-2 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: _MT and Preferably with the GCC specs? To solve ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [MinGW too] | this problem, define _MT and _DLL on the dmc command line as necessary. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all
As stated in my last message, I was really confused by wrong intellisense error and boost conventions: no linker error after all.At the moment the bug is just with intellisense not You have the same problem if you use DLLs that were linked with different versions of the dynamic CRT. –Luke Mar 2 '12 at 13:18 1 @noloader: the problem seems We will contact you if we require any additional information. Posted by ceztko on 2/28/2011 at 3:37 PM Ok, I just removed the _DLL define and I got only the Intellisense error. https://connect.microsoft.com/VisualStudio/feedback/details/648362/dll-macro-is-no-more-defined-when-md-or-mdd-are-set-console-and-dll-projects
Oldsod. And you'll get random crashes from it. –Nicol Bolas Mar 2 '12 at 4:37 1 This doesn't apply only to the static CRT. The time now is 06:46 PM. ©2003-2016 Check Point Software Technologies Ltd.
Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 23 Star 193 Fork 55 gdabah/distorm Code Issues 4 Pull requests 1 Projects Shortest path between two points with n hops Controlling jet engine thrust on airliners Simplify list of rules North by North by North by South East Countries where lecture duration does I filed a bug report against Boost for its incorrect assumptions, but that does not help me with using the library. If I try to build the minimal example given in your bug report (the regex) with /MTd and build as a .dll it seems to works just fine (like the boost
To me, that's a strong-enough argument for making no unnecessary change in MinGW. PS. Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. https://blogs.msdn.microsoft.com/oldnewthing/20110321-00/?p=11173 Do they control any code?
boost comes with pre-built versions of its libraries that link with the static CRT; we use them in a DLL just fine. If you don't know the standard's rules then you can't complain when unexpected things happen to you. MinGW doesn't define _DLL (at least, at present). However, I'd guess that "auto_link.hpp" is only used by the parts of Boost that are .libs, odds are good that the fact you encountered it to begin with means you're trying
To solve ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [MinGW too] | this problem, define _MT and _DLL on the dmc command line as necessary. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the http://permalink.gmane.org/gmane.comp.gnu.mingw.devel/4866 Intellisense indeed doesn't seem to not define _DLL but I wouldn't call that a serious problem. Cheers, Kai If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Kai Tietz - 2009-06-25 status: open-accepted --> pending-fixed And it's not intellisense to fail but rather the linker with error LNK1104.So at the moment:- compilation seems to work with correctly expanded _DLL;- intellisense does not expand _DLL correctly (confirmed?);-
Posted by Mike Danes on 2/28/2011 at 1:47 PM I did something like:#ifdef _DLLcout << "dll" << endl;#endifIt prints "dll" as expected.Did you actually try to compile your code or are Discussions will include endpoint security, mobile security and the latest in malware threats. I added a comment for this define in _mingw.h to describe why we are defining it here. This handle can be used // to call the Advantage Client Engine directly. // Returns a 0 if there is a problem.
I haven't used their compiler in twenty years, so it's conceivable that I've misunderstood. Best regards. Your problem is that the Boost library does not support being built into a DLL that is not dynamically linking to the runtime libraries. auto_link.hpp is checking for _DLL which is defined based on what CRT you are linking with, not what type of project you are building.
Ignorance of the standard does not protect you. ZoneAlarm Technical Support Open Monday-Saturday 24 hours PST Click Here to Chat with Technical support now. 10/19/2016 Update 220.127.116.1185 version available freeto all users. You signed out in another tab or window.
Returning the length of largest word in a sentence If I wanted to send mail to the USS Enterprise, how would I address it? Your issue has been routed to the appropriate VS development team for review. How does Professor McGonagall knows about the Golden Trio's conversation? src/config.h:117: /* If the library isn't compiled as a .DLL don't export functions. */ #ifndef _DLL #undef _DLLEXPORT_ #define _DLLEXPORT_ #endif This results in a conflict when using distorm under MSVC
Currently GCC will define _MT but only > if -mthreads used but that has no meaning as I've discovered in the > current versions of GCC. Status: closed-fixed Owner: nobody Labels: header (101) Priority: 5 Updated: 2009-06-25 Created: 2009-06-22 Creator: Ivan Maidanski Private: No Do You prefer be more compatible with MinGW or more with VC++? We need a testsuite to drive out the bugs. -- Earnie -- https://sites.google.com/site/earnieboyd------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has The problem is with generic "Win32 Project" in add new project form.
Free forum by Nabble Edit this page CLASS AxDBServer Advantage CA-Visual Objects RDD This example class, named AxDBServer, inherits from the DBServer class. I think you should find where it is defined because I don't think it should be. If that's right (but see the contrary example below), then I suppose it'd be safe to define it unconditionally for current MinGW gcc. (Earlier versions that require the thread-destruction DLL shouldn't It's used in system headers to decide whether to use __declspec(dllimport), which our w32api headers already do unconditionally.
Well, not really broken, since MSVCRT.DLL always provides Multi Thread; Single Thread required a different DLL. > > Of course we could say that he should have defined and used > The LIB builds fine, but the DLL coughs up an error from auto_link.hpp (line 354): "Mixing a dll boost library with a static runtime is a really bad idea...". #if (defined(_DLL) Download a new installer from the link below and do not use any web accelerators or download managers and use the IE for the browser to do the download. I got confused by the fact boost 1) build its linking directives using the _DLL macro, giving weird Intellisense errors like "IntelliSense: #error directive: "Mixing a dll boost library with a
And if you look at the headers, you can see that it is indeed done via conditional compilation. ... _CRTIMP int __cdecl fflush(FILE * _File); ... As stated in my last message, I was really confused by wrong intellisense error and boost conventions: no linker error after all.At the moment the bug is just with intellisense not Posted by Microsoft on 2/28/2011 at 10:14 AM Thank you for your feedback, we are currently reviewing the issue you have submitted. Thanks again for your efforts and we look forward to hearing from you.
How to replace 8-sided dice with other dice Is there any way I can use mapping to avoid a SOQL Query here? For boehm gc: -mdll would mean build/use gc as dll (like for VC++). Intellisense indeed doesn't seem to not define _DLL but I wouldn't call that a serious problem. Did you try to build that minimal example? –n1ckp Mar 11 '12 at 14:38 | show 7 more comments 2 Answers 2 active oldest votes up vote 5 down vote accepted
This is non-negotiable - we have no choice. Actually the answer was in one of the articles pointed by Skyborne - why cannot/should not fixup addresses in place. The compiler uses the /MT and /MD flag to decide whether or not to define the preprocessor symbol _DLL, which is the secret signal it passes to the crtdef.h header file