Pro C/C++ Problem on Mandrake 7.2
I am trying to compile a C++ program using proc on Linux and everything works fine until when I actually try to compile the output source from proc using g++. The problem is that there is a function
sqlcxt(void **, unsigned int *, sqlexd *, const sqlcxp *) that is called with the variable 'static const unsigned int sqlctx = 1;'
Both of these are generated by the precompiler and when I try to compile it using g++, I get an error saying passing `const unsigned int *' as argument 2 of `sqlcxt() disgards qualifiers.
What I have to do to get around this is to edit the output source manually and change the variable declaration to 'static unsigned int sqlctx = 1;'
Does anyone know how to fix this??
Thanks a lot!
null
This problem is easy to resolve but after you resolve it you will find another more borning problem. The compiler will tell you "undefined function sqlcxt".
You can use (unsigned int *)&sqlctx to instead of &sqlctx to resolve the first problem.
Similar Messages
-
System is Linux Mandrake 6.0 with Oracle 8i, with the 8i patch
applied.
What a nightmare that install was! Lots of permission problems,
unreadable directories, programs with no execute permission on
them and so on.
I now have a database up and running, and am trying to get Pro*C
working. The code was written on RedHat 5.2 with Oracle 8.0.5,
and worked fine there, so I know it is not a fundamental code
problem!
I have patched the pcscfg.cfg file as detailed in the patch FAQ
(with modifications for the slightly different paths under
Mandrake Linux).
When I compile the Pro*c file, I get many "undefined reference
to 'dbcon'" and "undefined reference to 'ctx'" errors from the
linker. This occurs whether I use a pre-defined list of specific
libraries in my own Makefile, or if I use the standard
demo_proc.mk makefile. I have used nm(1) on every place I can
think of, to try to find the required library/object, but to no
avail.
I appreciate that Oracle have so far only certified Oracle for
Linux against Redhat 6.0, but surely Mandrake can't be THAT
different ;-)
Does anybody have any ideas, known problems etc? I REALLY HOPE
that I don't have to switch to Redhat as the only solution - no
problem with Redhat, it would just require a tedious and
complicated system rebuild, which I don't have the time to do :-(
TIA
Mike Holden
nullRobert B gin (self) (guest) wrote:
: Robert B gin (guest) wrote:
: : Since I've last posted, I've installed RedHat 5.2 and
ditched
: : Slackware!
: : (btw, what a breeze - Hat's off to RH! very nice install!).
: : I've then installed oracle, have managed to setup
tnsnames.ora
: : so I can connect via sqlplus to my remote database (on
: VAX/VMS).
: : But now I have Pro*C linker problems with:
: : make -f demo_proc.mk build OBJS=test.o exe=test
: : (blah,blah,blah)
: : /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
: : make: *** [build] Error 1
: : Does anybody out there have a similar problem?
: : Rob
: Duh! forget it... (EXE has to be caps... RTFM)
: (cryptic error message though?)
: works great!!!
Could you please tell me where I can get demo_proc.mk file
for Linux (RedHat)?
Thanks
null -
i have just subscribed for a monthly billing for my acrobat pro XI, the problem is i have clicked on the link on the email that have sent me to activate it but its still not allowing me to acess this and see my PDF's, how to i activate my new license?
Can you explain the problem in more detail - "not allowing me to access" isn't clear to me. If you get any errors, please give the full wording. If you just don't seem to have any useful functions under TOOLS, make sure you are NOT still running Adobe Reader.
-
Titanium Fatal1ty Pro SPDIF game problem
(Titanium Fatalty Pro SPDIF game problem hi all,
sorry if this issue reported in the past i but i could not get any answer on any relati've posts, the terminology was so complicated
i buy?a new pc with a Titanium Fatalty Pro sound card, i use Vista sp2 x64, the sound card is connected to my external amplifier with SPDIF out in order to get surround sound for my movies and my games and here is my problem
any movies format with surround sound play perfect with out any problem any kind of movie DVD, dvix, mkv?files?etc
but non of the games i play?use the surround system, why is that? is any?kind of special settings needed to be done? how is possible to get surround to movies and not to the games?
thanks you all for your time ?,Re: Titanium Fatalty Pro SPDIF game problem? this is really coincidence - I just posted on the very same topic 5 minutes ago.
for games just go to the Console Entertainment mode > Encoder > Dolby Digital. Although this is not documented I believe what happens is that the sound card encodes the 6 digital channels onto Dolby Digital mode and transfers this over SPDIF. Kok-Choy actually recommend using the standard analogue cables (and he has a point as you are actually upcoding an existing game signal onto Dolby so that your digital receiver can then decode this down to 6 channels - seems a pretty useless overhead)
for video - I am curious to know what you do - I can either get 96/24 bits on the display of my z5500 with a direct signal but the z5500 receiver then tells me that this signal is only in dolby ProLogic II (and not DD or DTS). As alternati've I use again the encoder and have to select for EACH FILM WHAT IS BEST DOLBY DIGITAL OR DTS. Pls explain what settings you use.
thanks -
Premier pro play back screen goes black a freezes every 15 minute . This is my second mac pro with identical problems.
SOLVED!!!!!
SO I did some more digging around and read ATI cards seem to overheat easily. I knew the fan was working, but after closer inspection I realised there was ALOT of built up dust on the card and clogging the fan and airflow. Blew it out with alot of compressed air, stuck it back in the Mac and BAM...no black screens. I tested it by streaming 6 video sources...doing 2 screen captures at once as well as watching a HD movie in fullscreen. Did all this for 30 minutes and no crashes. I also downloaded an app to monitor the temps inside the computer and the expansion bay stays at 41 degrees. No clue what it was before but obviously it was hotter than that. So my problem is solved! Funny that 10.7.5 made the card work harder. I wonder if its off loading some CPU stuff to the GPU for processing more than 10.7.4 so its just working a bit harder and so it heats up faster.... -
Canon pixma pro 9500 having problems with my print out. colors are glazed and missing colors
canon pixma pro 9500 having problems with my print out. colors are glazed and missing colors
i have prfiled the mac and printer wiht colormunki and uplodated the profile sucessfully
i set the printer to correct icc profile
print out comes out same with glazed colors and missing tones/colors
however when i use the same printer on windows and with light room, following same icc profile, colormunki calibrated profile, the print our are excellent.
i have also tried using printer manage profile using the Mac and Aperture and get same poor prints
can you please assist and thanksI've a Pro9000 and also use Colormunki successfully.
When I use Colormunki, I calibrate both of my monitors and the printer/paper combination. Colormunki saves the generated profiles to the correct places -- I don't load or change any profiles after that as that would mess-up what the Colormunki had just done for me, and this would likely mess-up the prints.
Though I double-check the settings in the print dialogue, the choice for the printer handling things is already grayed-out. Colorsync handles it all just fine. -
Hi
Please don't make multiple posts, your question has been answered in your other thread.
I have imported my music from my iPhone to my Mac book pro. The problem is that now I can't listen to it. It's stating that my computer is not authorized. How can I authorize?? -
Macbook pro touchpad/curser problems.
macbook pro touchpad curser problems. typing randomly jumps to wherever the curser is resting at the time. unbelievably maddening. multiple devices same all have same problem. hard to believe we cannot find anything on the apple site about this. MANY complaints outside of this site on this issue... clearly a touchpad/battery design flaw being ignored by Cupertino. during the writing of this post, the curser jumped randomly and started typing in a different location six times. IMPOSSIBLE to use as a word processor since typing becomes quite frustrating. HELP. any ideas? Fanboy and shareholder. three macbook pros in the house...all the same problem. (please do not offer separate keyboard as solution...this is a laptop, not a Surface Pro...)
Go step by step and test.
1. Restart
2. Shut down the computer.
Clean the trackpad with moist not wet microfiber cloth.
System Preferences > Point & Click
Try turning off three finger dragging and then turning it on after testing.
3. Is there any Bluetooth device nearby with failing batteries? If so, replace the batteries.
4. Reset PRAM: http://support.apple.com/kb/PH14222
5. Reset SMC. http://support.apple.com/kb/HT3964
Choose the method for:
"Resetting SMC on portables with a battery you should not remove on your own".
6. Close all windows and quit all applications.
Click the Spotlight -the magnifying glass icon- in the menu bar. Enter Disk utility in the box.
Select Disk Utility from the drop down. When the Disk utility window opens up,
select Macintosh HD, then First Aid.
Click Repair Disk Permissions button.
Ignore the time remaining estimate. -
Why do I get - 'This message has no content' - with some e-mails on my iPad when the same messages can be received on my Mac Book Pro without any problem and how can I fix it?
Is this a POP (POP3) email account? If so, you MacBook Pro may be retrieving the email and deleting it off the server before your phone can. Another possibility is that both your Mac and your phone are trying to retrieving it at the same time, and the POP server, which will only allow a single email client connection at a time, is locking out your phone resulting in the "has not been downloaded from the server" error.
-
Updates fail with error 1328 I have re-installed XI Pro twice without problems.
2
William D. Burstow, CPG, QP
Consulting Economic Geologist
Tel: 541.573.1078
Email: <mailto:[email protected]> [email protected] -
Hi. I am not able to update the Adobe Flash Player on my MackBook Pro. The problem I am getting is a blank page for Step3. Can someone help please?
If you already have an older version of Flash Player, open the Preference pane and select Check Now... under the Update portion under the General tab:
You shouldn't have to install a new version from the website (I'm not even sure if you can) if you've already installed Flash Player.
Clinton -
Telstra Palm Treo Pro & Whereis Navigator problem
Hi, hoping this might save some time for other Telstra users subscribing to Whereis Navigator to take advantage of the GPS capability of the Palm Treo Pro.
The problem: when trying to open Whereis Navigator there was intermittant account (you subscribe to Telstra for this service) authorisation problems. The error message was along the lines (can't recall verbatim), "can't verify account authorisation, please try again later".The solution: On treo, open internet explorer, go to wap.telstra.comthen to 'my account', then 'Locational preferences', then 'my location settings', then tick 'allow me to be located' and 'allow a GPS location'. After this was done, no more problems.
Post relates to: Treo Pro (Telstra)
Message Edited by englundm on 10-22-2008 03:27 AMFurther update on above posts from problems during WhereisNavigator critical updates.
This from garmin/Telstra;
"Please have the customer try the following: ·
Open Internet Explorer on their device.·
Go to settings and clear the browser cache (not having the device in front of me at the moment, I can’t give more specific directions)· Re-start Whereis Navigator and click View Details·
Click the download link If this still fails, a secondary solution is to have the customer enter the following URL directly in to their browser: http://offboardnav.whereis.com This will take them to the same download site, but will remove the extra step of opening the application. "
Once I cleared the browser cache, the critical update install from the 'view details' prompt of the update within WhereisNavigator worked fine. Note on this occasion it didn't work (as it has with previous critical update istall problems) to navigate to the URL http://offboardnav.whereis.com and install directly. -
My 15" macbook pro have big problems identifying and connecting to my wireless network
my 15" macbook pro have big problems identifying and connecting to my wireless network. I have no problem connecting to my neighbour´s. Also I have a 13" macbook pro, a 13" macbook, 2 ipads and 3 iphones (3, 4 and 5) and none of these have any problems connecting to my wireless. My 15" is running Mac OS X 10.7.5, has a 2.66 GHz Intel Core I7 proc and 8 GB Ram
Hi Frodey,
Thanks for using Apple Support Communities. This article has steps to take to troubleshoot connecting to a wireless network and may help:
Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT4628
Cheers,
- Ari -
How can I reinstall Abode Acrobat Pro? Had problems when first downloaded and had to uninstall.
You can refer to :
Acrobat Learn & Support
Installing, uninstalling Acrobat X | Mac OS
Adobe Acrobat X Pro * Activation and registration
http://www.adobe.com/content/dam/Adobe/en/accessibility/products/acrobat/pdfs/acrobat-xi-p ro-accessibility-best-practice…
They are useful resources.
Regards
Rajshree -
I received a 2012 MacBook Pro INtel i7 for my birthday this May 2013. It constantly drops my airport connection. My ancient 2006 MacBook Pro has no problem connecting to airport, nor staying connected. I've had to write this message several times as I keep losing the airport connection and have to reconnect. BTW: I am less than five feet from the airport base.
Thanks for help.After trying all of the above the suggestions, the problem returned as before. However, after digging some more I discovered that the issue appears to lie with the 10.4.10 version of the Mac OS; when I checked the software log under the system profiler I noticed that I had installed that update at about the time my Airport problems began. Apple then quietly released a v 1.1 combo update to 10.4.10 on July 2nd, which once installed appears to have resolved the problem. You can find the download at http://www.apple.com/support/downloads/macosx10410comboupdatev11intel.html
What's curious is that originally Apple listed that the v 1.1 combo update resolved some issues with RAW image data, and some sound problems, which don't seem to have anything to do with Airport.
Maybe you are looking for
-
I am experiencing difficulties adding new songs to icloud via itunes Match. Match just doesn't complete the update, keeps running and running, but never actually finishes. This make managing my music impossible as I can't make playlists until the son
-
What's the best way to move around in a document?
Maybe I'm missing something obvious here, but what's the best way to move around in a zoomed in document? The only method I've found so far is to drag with two fingers, which keeps resizing the document as it moves around. No Hand Tool? No way to zoo
-
Re: Photoshop elements 9. Help please!
I have a page cover I'm trying to design. Started it a few weeks ago maybe. 1. How can I get all the layers to show in the edit column so I can alter them? 2. Why don't they unlock if you press the lock, or anything else for that matter! ? 3. I even
-
I want to use an iPad of my mum with my own Apple ID which I have but I want also delete all the old apps of my mums
-
Hi, I used package DBMS_XMLGEN in my procedure, when compile, I got an error message as following: PLS-00201: identifier 'DBMS_XMLGEN.CTXHANDLE' must be declared Does someone can tell me how to fix it?? I use Oracle 8.1.7. Thanks a lot Dodo