Using long longs in a 32 bit app
What restrictions do I need to observe if I use long long ints (or off_t or fpos_t) in a 32 bit app? If I return a 64 bit value from a function, will that change the alignment of all function calls in the project? Can I use structs that contain long longs without affecting call alignments?
I don't have another
compiler/debugger to use, but I make more progress by
inserting my own debugging statements than with GDB.
You're not the only one!
If there is an alignment problem, the source is probably not in GCC. Even though using a long long is a little unusual for people like me, I'm sure there are enough people using long long in GCC to have worked out the bugs.
Are you doing pointer arithmetic? Are you assuming that the way you have defined your C structure is the way it looks in memory? Is it possible you have endian issues?
I would suggest starting a new thread. I think the only thing you've done wrong is assume that it is an alignment issue with GCC/GDB and asked a specific question about that. If you frame your question in terms of "I'm crashing here - anybody know why?" you'll get better responses. Of course, the ideal is a very small piece of runnable code the reproduces the error. I know that is usually not possible, but try the best you can. If nothing else, post the structures as you define them and then post some code examples of how you pass them and then how you use them.
Switching to C++ is another can of worms you probably don't want. I would rather see you use C than Python or Java. Just post some source code here or in a new thread and we'll take a look at it. Having another set of eyes makes a huge difference.
Similar Messages
-
Is there an app that will act as a digital picture frame ( slide show ) when in screen saver mode? IOS7 no longer has this feature.this is very upsetting as it is one of the main reasons I bought an iPad for my store.
You still have the option of using the slideshow feature in the Photos app. It's not in the lock screen anymore, but it is stll available there.
-
I bought an app which was free. To get the full version I then paid for it. I used it for months and now it's saying I have not got the full version and I no longer have access to the full app like I used to.
Try contacting the app support of the particular app your using.
Most apps have an app support button on their app page within itunes.
If they wont reply within a reasonable amount of time and you feel like the particular app developer has cheated you, bring the issue forward to apple care.
Note that app developer have their own customer support. -
Revision: 16385
Revision: 16385
Author: [email protected]
Date: 2010-06-01 13:32:35 -0700 (Tue, 01 Jun 2010)
Log Message:
-removed the utilities package target since it's not used any longer - at least what is contained in this target. I believe this was a leftover from flex 2 days.
-fix up the packaging targets to ensure they are being properly built. I removed depends="temp-clean" and inserted antcall target="temp-clean" because a target gets executed only once, even when more than one target depends on it.
QE notes:
Doc notes: no
Bugs: no
Reviewer: Guarav
Tests run: no
Is noteworthy for integration: no
Modified Paths:
flex/sdk/trunk/build.xmlhttp://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
-This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
-so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
If you are sure you don't need the old CC programs
-http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall -
I create on table say "TAB" with a column as long datatype
create table tab
(name long);
now i need to create another table structure similar to "TAB" say "TMP_TAB"
create table tmp_tab
as
select * from tab;
But this gives the following error..< ORA-00997: illegal use of LONG datatype >
Can anyone please explain me the reason for the following error?If you have Oracle 9i, then
Quick and correct solution: Don't use LONG - Datattype !
It's obsolete, use CLOB instead.
If LONG- Datatype is inevitable (why ?), then
declare
v_sql VARCHAR2(32767);
begin
select dbms_metadata.get_ddl('TABLE', 'TAB', 'SCOTT') INTO v_sql
from dual;
v_sql := replace (v_sql, '"SCOTT"."TAB"', '"SCOTT"."TMP_TAB"');
execute immediate v_sql;
end;
/but it's a bit tricky .... -
Lightroom 4 resizing on export feature - using the "long edge" resize option - doesn't seem to work
In previous versions of Lightroom (prior to 4), when I used the resize feature while exporting, I often used the "long edge" value to resize.
Previously, when I selected 2500 as the "long edge" value, I would receive exported JPGs in a size of something like 2500x1650 or so for landscape shots and 1650x2500 for portrait shots.
With LR 4 (not sure if this started with the RCs or 4.0), using the same settings, I'm getting landscape shots that are 3700x2500 and portrait shots that are 1650x2500. This is acting more like I said I wanted a dimensional resize of _____ X 2500 instead of long edge of 2500.
I tried playing around with some of these settings, but nothing seems to give me the old behavior of 2500 on the long edge, even though that's what I've set it for.
Anyone else seen this type of issue?
I'm currently running LR 4 RC2, but also noticed this on RC1, but not sure of 4.0. I'm a Mac user, running the current version of Lion (10.7.3) on a 2010 Mac Pro.
Thanks,
MarkWith RC2 on Windows 7 (64 Bit) I get 2500x1667 for landscape and 1667x2500 for portrait, as expected. Seems to be an issue in the Mac version only.
A workaround might be to use "dimensions" instead and leave one of the fields empty (LR inserts "0" there, but one cannot enter "0" manually). I think this is equivalent to "long edge", but I am not 100% sure (edit: ok, I think I am nearly sure that it is). -
WS6U2 (32-bit mode): long long bitfields are not allowed
The C++ README for WS6U2 states:
(in Sun Workshop 6 New Features)
"The restriction on the size of a bitfield to 32 or less is removed. Bitfields can be any size."
but if we use this code:
// spam.cc begins:
struct spam {
..unsigned long long a : 40;
..unsigned long long b : 20;
spam empty_spam() { return spam(); }
// ends
[note: i've used "."'s because leading spaces seem to be ignored; and the "special tokens" url (goes to FAQ) doesn't go to a helpful page]
and attempt to compile on a Solaris 2.6 machine:
$ CC -c spam.cc
"64-bit-fields.cc", line 2: Error: long long bit fields are not allowed.
"64-bit-fields.cc", line 3: Error: long long bit fields are not allowed.
2 Error(s) detected.
$
it even fails on Solaris 2.8, with CC -xtarget=ultra -xarch=v9a -c spam.cc
if we change the "long long" to "long" it will compile on Solaris 2.8 (with -xtarget=ultra -xarch=v9a) and use 64-bit long's.
it hardly seems that "bitfields can be of any size".Be a good citizen and provide the answer!
I start a new shell with linux32 bash.
--olaf -
CMD Tab feature no longer takes me to the selected app.
The CMD Tab feature no longer takes me to the selected app. Additionally I have to double click many apps in the Dock to gain access. Anyone have a solution for this?
I have installed a clean Mt Lion system in th ehope that it would fix this but no luck.tinafromwest lafayette wrote:
but when I use the down arrow key to "launch" the app back open; I get a small icon at the bottom just above the dock.
Don't use the down arrow key. Simply release the Command and Tab keys once the application you want is highlighted. This will open the application in a normal view.
By pressing the down arrow key you are invoking the view all open windows for an application. This is the same outcome as using Control and down arrow for an application that has multiple windows open. -
My iPad no longer appears in the iTunes desktop app, so I can't sync or transfer files?
I also have an iPod Touch. It appears in iTunes but willnot sync... "unknown error 1723"
This is a recent problem. Everything was fine initially, and I don't think that I've done anything to change my setup.
...CharlesiPad not appearing in iTunes
http://www.apple.com/support/ipad/assistant/itunes/
iOS: Device not recognized in iTunes for Mac OS X
http://support.apple.com/kb/TS1591
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
iTunes for Windows: iTunes can’t contact the iPhone, iPad, or iPod software update server
http://support.apple.com/kb/ts1814
iTunes for Windows: Device Sync Tests
http://support.apple.com/kb/HT4235
IOS: Syncing with iTunes
http://support.apple.com/kb/HT1386
Apple - Support - iPad - Syncing
http://www.apple.com/support/ipad/syncing/
iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
http://support.apple.com/kb/ts4062
iOS: “Not enough free space” alert when trying to sync
http://support.apple.com/kb/ts1503
You may need to delete iTunes on your computer and then reinstall.
How To Completely Uninstall and Remove All Traces of iTunes
http://zardozz.com/zz/2008/04/how-to-completely-uninstall-and-remove-all-traces- of-itunes.html/
Cheers, Tom -
Since upgrading my iPhone 4 to the new ios6 software I can no longer access itunes through the itunes app. I there a fix for this yet?
Scalesy05 wrote:
I there a fix for this yet?
Why would there be a fix? YOU are having the problem. I'm not, no one I know is having the problem. No fix is needed.
Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new. Have you been through any, if not all of these troubleshooting steps yet? -
I want to *use* very long file and path names!
This is really a plea to Microsoft...
There are several threads about copying or deleting files where the path and/or file name is too long.
Most have explanations of why this problem occurs. (depending on Windows version and application, the total length [fully qualified file name; i.e. C:\this-dir\that-dir\somefile.xyz] is limited to a maximum of 260 or fewer characters). This limit
But I *WANT* to be able to use very long file names and paths!
I can understand Microsoft keeping this limit - even while allowing UNICODE paths and file names up to 32k characters - because many existing tools will be unable to handle the longer names. This would probably yield a lot of questions/flames about
them "breaking the software I've used for years."
But it would be possible to have a system setting to optionally allow the long names. Since I'd have to manually set it, I'd know I'm potentially breaking existing software.
In my case, I'm backing up various file directories where some files are very long. With the server-side additional paths (e.g., client-name\project-name\backup-date\...") I occasionally hit files that can't be copied. Renaming is not suitable;
sometimes names have to match other file names.
I can zip them, create iso files, use a backup program that creates a blob, put them in a source-control system, etc - but I really don't *want* to do that; it's very convenient to have a direct copy of the directories. Each of these 'solutions' either
requires extra work (which could be scripted, so ok...) or doesn't work with the work-flow for some reason.
Microsoft, *please* fix this in Windows 8! (if not before...) This limit has existed for far too long!
And readers - please don't just repeat what's in the other threads (rename/use subst/map directory/etc) or flame without useful information. Thanks!Hi,
I would submit your opinion to our Product Team. If you have another feedback, please feel free and let me know. Or you could follow TekDozer’s advice to submit
by yourself.
Thank you for your understanding and cooperation.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
My "Notes" app on my iPhone 4S is no longer syncing up with my "Notes" app on my PC or on my iPad. It was syncing up fine before. But no longer. How do I fix this so that whatever I type in iPhone "Notes" will appear in my other devices' "Notes"?
See Recover your iTunes library from your iPod or iOS device.
tt2 -
Use of long text in maintenance item
Hi Experts ,
What is use of long text in maintenance item, Which T code is use for to create long text for maintenance item
With best regards,
AVI DDS.hi
if you have maintained the tasklist ,i think it will copy the maintenance item short and long text to the maintenance order or notification created
regards
thyagarajan -
I need to clarify how I can use adobe as a host for my site for free. I see where business catalyst is supposed to be temporary as well as it is recommended to use as the better alternative to launch my muse site. But then I have to use the long extension of "businesscatalyst" in addition to the domain name I'd prefer. How exactly can I take it live? do I have to use a third party hosting?
Hi,
Once you are done with your sitet, Click on Publish in Muse, select New Site from the drop down, It will ask you a name for your site, which will be used for site url, you will get a url like mysite.businesscatalyst.com, then go to the browser and login to the admin panel, mysite.businesscatalyst.com/admin and on Dashboard, click Launch site. This will push your site live, and you can then add your custom domain.
Also make sure that you have completed all these actions mentioned here
User manual
Do let me know if you have any question. -
While I was insert a rows into the same table I am getting an error. I am having one long column in table list. I am getting following error while I was inserting a row.
ORA-00997: illegal use of LONG datatype
Please let me know how do I insert long data type values for this kind of insert.[duplicate thread|http://forums.oracle.com/forums/message.jspa?messageID=3770321#3770321]
Maybe you are looking for
-
Why don't gif animations work in Mail 3.4?
I posted this earlier today on what I thought was the 10.5 Leopard section and as it turned out, it somehow posted in the Panther OS section. Doh! I'm sorry if you saw the other post and this is the second time you have read this today. I have read t
-
How to add a new filed of Personnel number in FB60 data entry screen
Hello SAP Gurus, We want to have a field to populate the Personnel number in all of the posting document entries via FB60. Besides the existing fields such as the "Doc.header text", "reference", "short text", "text" and "assignment" fields etc, are t
-
I recently downloaded iTunes 10.6.1 on my windows laptop now when I open up iTunes it works fine untill I try to play a song then iTunes freezes no matter what song I play or how many times I restart my computer it just freezes when I try to play a s
-
How to find the existence of a tag in XML file through XSLT Mapping?
Hello Friends, Working on an SAP XI interface ,I have come across a situation where I need to map the values only when a particular tag exists in the inbound XML file.I need to use the XSLT mapping for the same. Requesting your advice on as to how ma
-
How to configure mail service in DRM 11.1.2.3.500
How to configure mail service in DRM 11.1.2.3.500. There is a feature in Workflow Models to Notify users by sending mail. Can anyone help me find from where to configure mail service.