Community
cancel
Showing results for 
Search instead for 
Did you mean: 
couturier_g_
Beginner
81 Views

traceback under windows

Hello Intel Compiler Team,

I face following issue (intel compiler 2013, Visual Studio 10):

I added /traceback compilation option (release mode), but when I run the program from a windows console (my OS is windows 7), A microsoft error window opens, and I do not get the traceback in the console.

Known issue? Or did I miss a compilation option?

KR

Gael.

0 Kudos
7 Replies
couturier_g_
Beginner
81 Views

Hello Intel Compiler Team,

I add following info:

- My VS10-intel13 compiler project is a dll called by a client.

- I set /traceback for both: the dll and the client.

- the dll is C++ code.

- When the client is C/C++, I do not get the trace in windows console (I just get  a microsoft error window).

- when the client is Fortran, I do get a reasonable trace but not fully exact and complete: some function calls are missing in the trace, and line pointed is not fully exact sometimes.

Main issue currently is : the absence of trace if the client is C/C++. Any specific set of compilation option to be defined?

Kind regards,

Gael.

mecej4
Black Belt
81 Views

Check whether the EXE that you built has traceback information, by using the command

     link -dump -summary <your_app_name.exe>

If the output does not show a ".trace" section, you have to look at the build process to spot any source files that may have been compiled without traceback information. Even if there are no such sources, if your EXE uses routines from a library that was built without the traceback option, you will see no line-number information for those routines.

couturier_g_
Beginner
81 Views

Looks like this "link" is not part of intel 13 compiler distribution for windows.

How can I get that executable?

KR

Gael

mecej4
Black Belt
81 Views

LINK and a few other utils are essential for any program development on Windows. You certainly have Link installed as part of a Windows SDK or as part of Visual Studio. Without it, you would have been unable to build and run any C or Fortran program using the Intel compilers. What you probably tried is to run Link from a plain CMD window, in which the path to Link would not have been included in %PATH%.

Open a command window for use with Intel C or with MS Visual C, and you will find yourself able to run Link from that window.

couturier_g_
Beginner
81 Views

Oh ok,

sorry for the lack of lucidity ...

Both executables have this .trace section (see attached image).

But when executed, only the fortran one provide a trace.

I remind that I use intel 13.

KR

Gael.

Yuan_C_Intel
Employee
81 Views

Hi, Gael

The traceback option tells the compiler to generate extra information in the object file to provide source file traceback information when a severe error occurs at run time. This is intended for use with C code that is to be linked into a Fortran program.

That's to say this is only supported by Intel Fortran Runtime, not the C runtime from Microsoft Windows.

Hope this explains.

Thanks.

couturier_g_
Beginner
81 Views

Thanks!

That is clear now,

KR

Gael

Reply