Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001803graphvizBuild/Installpublic2010-01-26 11:342011-04-28 04:03
Reporterqiaow000000 
Assigned ToArif Bilgin 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-OS Version
Summary0001803: bug1573 still
Description



In bug 1573, i find to use aginit() at head, so i use the sample as follows,
<CD>
#include <stdio.h>
#include <iostream>
#include "types.h"
#include "graph.h"
int main(int argc, char* a[]) {
FILE *lFile = fopen("d:\\clust3.gv", "r");






if(!lFile)
std::cerr << "Error opening the file!" << std::endl;
else
{
aginit();
Agraph_t *lGraph = agread(lFile);
if(lGraph)
std::cout << "Success" << std::endl;
}
}
</CD>
~~~~~~~~~~~~
but it still crushed at agread() , whatever in debug(/MTD) or release (/MT)
and link option in debug:
/OUT:"e:\mytemp\testgraphviz\Debug\testgraphviz.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\Graphviz2.26\lib\debug" /MANIFEST /MANIFESTFILE:"Debug\testgraphviz.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAcce ss='false'" /DEBUG /PDB:"e:\mytemp\testgraphviz\Debug\testgraphviz.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT gvc.lib graph.lib cdt.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
Steps To Reproduce

digraph graphname
{
    a -> b -> c;
    b -> d;
}
Additional Information

[erg] I'm guessing that it is the usual problem of binary
incompatibility of our FILE and the FILE included by the user.

[arif]
Can you define WIN32_DLL and try again?
It should fix the problem
#define WIN32_DLL 1
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1866
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (26 Jan 2010)
VERSION     2.26
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Arif Bilgin


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker