[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repatch about const and other fixes
From: |
Arnaud Desitter |
Subject: |
Re: Repatch about const and other fixes |
Date: |
Tue, 12 Dec 2000 19:00:48 +0000 () |
Hi Andreas,
> I have prepared a new DDD 3.2.93 package, but it will take a few days
Here is a patch to fix the compilation problem on SGI.
Feel free to modify it. Once the correction applied,
ddd compiles fine with the native mips compilers.
The configure command to use is a bit crytic. You may want to
add it in a help file.
env CC='cc -n32' CXX='CC -n32' \
CFLAGS='-O' CXXFLAGS='-O' \
./configure \
--with-motif-includes=/usr/Motif-2.1/include \
--with-motif-libraries=/usr/Motif-2.1/lib32 \
--x-libraries=/usr/lib32
Cheers,
Arnaud
diff -r -w -u ddd-3.2.93/ddd/ddd.C ddd-3.2.93-1/ddd/ddd.C
--- ddd-3.2.93/ddd/ddd.C Mon Dec 11 12:21:48 2000
+++ ddd-3.2.93-1/ddd/ddd.C Tue Dec 12 16:46:14 2000
@@ -2102,18 +2102,23 @@
}
// Set up VSL resources
- if (VSEFlags::parse_vsl(argc, (const char**)argv))
{
+ const char** argv_ = (const char**)argv;
+ if (VSEFlags::parse_vsl(argc, argv_))
+ {
// Show VSL usage...
cout << VSEFlags::explain(true);
return EXIT_FAILURE;
}
-
+ argv = (char**)argv_;
+ }
// All remaining args are passed to the inferior debugger.
if (argc == 1 && app_data.open_selection)
{
+ const char** argv_ = (const char**)argv;
// No args given - try to get one from current selection
- add_arg_from_selection(toplevel, argc, (const char**)argv);
+ add_arg_from_selection(toplevel, argc, argv_);
+ argv = (char**)argv_;
}
// Check the X configuration
diff -r -w -u ddd-3.2.93/ddd/vsl.C ddd-3.2.93-1/ddd/vsl.C
--- ddd-3.2.93/ddd/vsl.C Mon Dec 11 12:21:48 2000
+++ ddd-3.2.93-1/ddd/vsl.C Tue Dec 12 17:36:19 2000
@@ -188,7 +188,11 @@
int main(int argc, char *argv[])
{
// Set flags
- VSEFlags::parse(argc, (const char**)argv, "vsllib");
+ {
+ const char** argv_ = (const char**)argv;
+ VSEFlags::parse(argc, argv_, "vsllib");
+ argv = (char**)argv_;
+ }
// Init toolkit
Widget toplevel = XtAppInitialize(&app_con, "Vsl", NULL, ZERO,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Repatch about const and other fixes,
Arnaud Desitter <=