473,385 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

LNK9038 SAFESEH warning,

Hi,

Iam linking my C++ project with some external libraries and getting the
following error:

someLib.lib(omeObj.obj) : LNK9038: module unsafe for SAFESEH image.
I do not have exception handling turned on in my main project (no /GX /Eh
options).

What is wrong?

Matej
Jul 21 '06 #1
1 2979
"Matej Trampus" <ma***********@online.nospamwrote
>
Iam linking my C++ project with some external libraries and getting the
following error:

someLib.lib(omeObj.obj) : LNK9038: module unsafe for SAFESEH image.
I do not have exception handling turned on in my main project (no /GX /Eh
options).
/SAFESEH generates a table of exception handlers for structured exception
handling in the image. SEH is a different from C++ exception handling
(the latter is built on top of SEH). SEH is also about things like processor
exceptions such as access violations etc.

The table is suppossed to be minimize attacks hijacking the exception
handler list. The OS (IIRC it's a W2K3+ feature) will no longer dispatch
to a handler which is not listed in the image's SAFESEH table.

I don't think there's a lot you can do short of removing /SAFESEH from
the linker command line.

-hg
Jul 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bas Wassink | last post by:
Hello there, I'm having trouble understanding a warning produced by 'splint', a code-checker. The warning produced is: keywords.c: (in function keyw_get_string) keywords.c:60:31: Released...
2
by: Roger Orr | last post by:
Hi, I'm trying to write my own 'safe' exception handler for Microsoft Visual Studio .NET 2003. 1) It seems that you cannot mark a C++ function as a safe exception handler. 2) I can't get the...
3
by: Bill Burris | last post by:
How do I find what is causing this warning from the Linker? If I use /NODEFAULTLIB I get hundreds of undefined symbols. LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
1
by: spanov | last post by:
i've got problem installing python-2.3.5 from sources on FreeBSD 5.3 root@server# ./configure > conf_log configure: WARNING: curses.h: present but cannot be compiled configure: WARNING:...
0
by: Rohini | last post by:
Hi , I built a project in vc++ 7.1. I am able to succesfully build the project but with some warnings. I have done it in win32 release mode. And I have done it with verbose on. I have found...
92
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
4
by: cody | last post by:
It is possible to declare and use/instantiate a class with a uninitialized readonly field without even a compiler warning. Why don't I get warnings? public class Stuff { public readonly int a;...
0
by: sathish74 | last post by:
Hi All, Is there any list of options that is not compatible with /SAFESEH. I have a static library that i build using VC 2005. Since its a library, setting /SAFESEH is ignored. Because of this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.